backport fixes to findInRectCache
svn path=/branches/KDE/4.3/kdelibs/; revision=1005297
This commit is contained in:
parent
9025893d99
commit
259db9bbd2
@ -721,9 +721,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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user