avoid harder divisions by zero

BUG:178746

svn path=/trunk/KDE/kdelibs/; revision=902555
This commit is contained in:
Marco Martin 2008-12-28 17:09:21 +00:00
parent 64eb25d5ef
commit 66bb0f6bda

View File

@ -130,7 +130,7 @@ public:
elementRect = QRectF(QPoint(0,0), meter->size());
}
if (image->hasElement("hint-bar-stretch")) {
if (image->hasElement("hint-bar-stretch") || !image->hasElement("bar-active-center")) {
return elementRect;
}