don't try to paint when there is no image

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=876828
This commit is contained in:
Marco Martin 2008-10-28 08:29:39 +00:00
parent a00b42cf69
commit 8560092760

View File

@ -343,6 +343,11 @@ void Meter::paint(QPainter *p,
{
Q_UNUSED(option)
Q_UNUSED(widget)
if (!d->image) {
return;
}
QRectF rect(QPointF(0, 0), size());
QRectF clipRect;
qreal percentage = 0.0;