From 8da621fad40f54b68aa6271b60c61784dbee09dc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lubo=C5=A1=20Lu=C5=88=C3=A1k?= Date: Fri, 7 Mar 2008 21:20:04 +0000 Subject: [PATCH] Don't do 'foo->setAlphaChannel(*foo)', the function temporarily destroys the internal data and the argument is just a reference to this (temporarily broken) object. svn path=/trunk/KDE/kdebase/workspace/; revision=783333 --- clients/b2/b2client.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/clients/b2/b2client.cpp b/clients/b2/b2client.cpp index 6d1cc92287..90f425f474 100644 --- a/clients/b2/b2client.cpp +++ b/clients/b2/b2client.cpp @@ -1116,7 +1116,7 @@ static void redraw_pixmaps() bool isAct = (i < 3); QPixmap *pixm = pixmap[P_HELP + i]; pixm->fill(QColor(qRgba(0, 0, 0, 0))); - pixm->setAlphaChannel(*pixm); + pixm->setAlphaChannel(QPixmap(*pixm)); p.begin(pixm); QColor color = isAct ? activeColor : inactiveColor; QRect r = QRect(0, 0, pixm->width(), pixm->height());