size.isEmpty() does the same and looks nicer, good catch sebas :)

svn path=/trunk/KDE/kdelibs/; revision=894919
This commit is contained in:
Marco Martin 2008-12-09 16:22:03 +00:00
parent b321b2f033
commit 2af3225c26

View File

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