restore the painter

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=750290
This commit is contained in:
Aaron J. Seigo 2007-12-19 02:52:41 +00:00
parent e8e3b503e2
commit f0637a2e9a

View File

@ -865,6 +865,7 @@ void Applet::paintWidget(QPainter *painter, const QStyleOptionGraphicsItem *opti
// note that the widget we get is actually the viewport of the view, not the view itself
View* v = qobject_cast<Plasma::View*>(widget->parent());
if (v && !v->drawWallpaper()) {
painter->restore();
return;
}
}