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:
parent
a00b42cf69
commit
8560092760
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user