anoter case of useless warnings

svn path=/trunk/KDE/kdelibs/; revision=907540
This commit is contained in:
Stephan Kulow 2009-01-08 11:32:55 +00:00
parent 744f3ef721
commit f9abcd96e4

View File

@ -165,6 +165,8 @@ public:
//be retrocompatible with themes for kde <= 4.1
if (image->hasElement("background-center")) {
QRectF elementRect = barRect();
if (elementRect.isEmpty())
return; // nothing to be done
QSize imageSize = image->size();
image->resize();