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;
}
}
#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