Fix kiconloader crash when libart is not in use

pull/16/head
Timothy Pearson 13 years ago
parent 2b035349c3
commit e6b6f2eafd

@ -753,9 +753,9 @@ TQPixmap KIconLoader::loadIcon(const TQString& _name, KIcon::Group group, int si
return pix; return pix;
} }
} }
#ifdef HAVE_LIBART
else else
{ {
#ifdef HAVE_LIBART
// Special stuff for SVG icons // Special stuff for SVG icons
KSVGIconEngine *svgEngine = new KSVGIconEngine(); KSVGIconEngine *svgEngine = new KSVGIconEngine();
@ -765,8 +765,10 @@ TQPixmap KIconLoader::loadIcon(const TQString& _name, KIcon::Group group, int si
img = new TQImage(); img = new TQImage();
delete svgEngine; delete svgEngine;
} #else
img = new TQImage();
#endif #endif
}
iconType = icon.type; iconType = icon.type;
iconThreshold = icon.threshold; iconThreshold = icon.threshold;

Loading…
Cancel
Save