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
This commit is contained in:
Luboš Luňák 2008-03-07 21:20:04 +00:00
parent a3d931a84b
commit 8da621fad4

View file

@ -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());