save/restore the painter before handing it to the wallpaper

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=869679
This commit is contained in:
Aaron J. Seigo 2008-10-09 18:48:27 +00:00
parent 1a196323d2
commit f7f4a8e821

View File

@ -959,7 +959,9 @@ void Applet::paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QW
if (!v || v->isWallpaperEnabled()) {
Containment* c = qobject_cast<Plasma::Containment*>(this);
if (c && c->drawWallpaper() && c->wallpaper()) {
p->save();
c->wallpaper()->paint(p, option->exposedRect);
p->restore();
}
Containment::StyleOption coption(*option);