From kde-commits Tue Oct 28 08:29:40 2008 From: Marco Martin Date: Tue, 28 Oct 2008 08:29:40 +0000 To: kde-commits Subject: KDE/kdebase/workspace/libs/plasma/widgets Message-Id: <1225182580.323965.18346.nullmailer () svn ! kde ! org> X-MARC-Message: https://marc.info/?l=kde-commits&m=122518259202072 SVN commit 876828 by mart: don't try to paint when there is no image M +5 -0 meter.cpp --- trunk/KDE/kdebase/workspace/libs/plasma/widgets/meter.cpp #876827:876828 @@ -343,6 +343,11 @@ { Q_UNUSED(option) Q_UNUSED(widget) + + if (!d->image) { + return; + } + QRectF rect(QPointF(0, 0), size()); QRectF clipRect; qreal percentage = 0.0;