From f37ed173adfe3c3754068c3f141e2c9539edf9a1 Mon Sep 17 00:00:00 2001 From: Marco Martin Date: Fri, 31 Jul 2009 18:47:20 +0000 Subject: [PATCH] pursuing zero svg renderers instantiated: most elements have a single _, correct way should be names starting by _ svn path=/trunk/KDE/kdelibs/; revision=1005293 --- theme.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/theme.cpp b/theme.cpp index 0d7f07c76..26e446c26 100644 --- a/theme.cpp +++ b/theme.cpp @@ -731,9 +731,9 @@ bool Theme::findInRectsCache(const QString &image, const QString &element, QRect 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 - if (element.count('_') == 1) { + if (element.indexOf('_') <= 0) { return false; }