From 71959ec0064dc952fd2fc5407d3499216a896c89 Mon Sep 17 00:00:00 2001 From: Christoph Feck Date: Sun, 30 May 2010 16:59:39 +0000 Subject: [PATCH] Fix warning "QPixmap::operator=: Cannot assign to pixmap during painting" svn path=/trunk/KDE/kdebase/workspace/; revision=1132445 --- clients/modernsystem/modernsys.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/clients/modernsystem/modernsys.cpp b/clients/modernsystem/modernsys.cpp index 6cb0ac0f80..c254a9d605 100644 --- a/clients/modernsystem/modernsys.cpp +++ b/clients/modernsystem/modernsys.cpp @@ -123,7 +123,6 @@ static inline const KDecorationOptions* options() static void make_button_fx(const QPalette &g, QPixmap *pix, bool light=false) { pix->fill(g.background().color()); - QPainter p(pix); if(QPixmap::defaultDepth() > 8){ int i, destH, destS, destV, srcH, srcS, srcV; @@ -150,6 +149,7 @@ static void make_button_fx(const QPalette &g, QPixmap *pix, bool light=false) } else{ + QPainter p(pix); if(!lcDark1.mask()){ lcDark1.setMask(lcDark1); lcDark2.setMask(lcDark2);