Fix kiconloader crash when libart is not in use

(cherry picked from commit e6b6f2eafd)
v3.5.13-sru
Timothy Pearson 13 years ago committed by Slávek Banko
parent f1cc1e956c
commit 3c199843f5

@ -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