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:
parent
1a196323d2
commit
f7f4a8e821
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user