a size like QSize(10,0) is valid but will end up in a null pixmap, and

this thing did confuse the cache a lot
CCBUG: 177172
does this patch fixes it? will keep open a day to be really sure :)

svn path=/trunk/KDE/kdelibs/; revision=894591
This commit is contained in:
Marco Martin 2008-12-08 22:22:18 +00:00
parent 9edf9c2ac0
commit ff8af18497

View File

@ -155,7 +155,7 @@ class SvgPrivate
size = elementRect(elementId).size().toSize(); size = elementRect(elementId).size().toSize();
} }
if (!size.isValid()) { if (size.width() <= 0 || size.height() <= 0) {
return QPixmap(); return QPixmap();
} }