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

Loading…
Cancel
Save