pursuing zero svg renderers instantiated:

most elements have a single _, correct way should be names starting by _

svn path=/trunk/KDE/kdelibs/; revision=1005293
This commit is contained in:
Marco Martin 2009-07-31 18:47:20 +00:00
parent d3f77afd1f
commit f37ed173ad

View File

@ -731,9 +731,9 @@ bool Theme::findInRectsCache(const QString &image, const QString &element, QRect
return true; return true;
} }
//A single _ means the element is empty and we're asked for the size of //Name starting by _ means the element is empty and we're asked for the size of
//the whole image, so the whole image is never invalid //the whole image, so the whole image is never invalid
if (element.count('_') == 1) { if (element.indexOf('_') <= 0) {
return false; return false;
} }