From f7f4a8e82111c1263b057f0d577f56e2e6bd0280 Mon Sep 17 00:00:00 2001 From: "Aaron J. Seigo" Date: Thu, 9 Oct 2008 18:48:27 +0000 Subject: [PATCH] save/restore the painter before handing it to the wallpaper svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=869679 --- applet.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/applet.cpp b/applet.cpp index db543442f..dfa84dbc7 100644 --- a/applet.cpp +++ b/applet.cpp @@ -959,7 +959,9 @@ void Applet::paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QW if (!v || v->isWallpaperEnabled()) { Containment* c = qobject_cast(this); if (c && c->drawWallpaper() && c->wallpaper()) { + p->save(); c->wallpaper()->paint(p, option->exposedRect); + p->restore(); } Containment::StyleOption coption(*option);