summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--tdecore/kiconloader.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/tdecore/kiconloader.cpp b/tdecore/kiconloader.cpp
index 3c5cf7135..9b95084a0 100644
--- a/tdecore/kiconloader.cpp
+++ b/tdecore/kiconloader.cpp
@@ -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;