From 35537630f6e6df0cffbb6a26c77e38713e9c99f9 Mon Sep 17 00:00:00 2001 From: Marco Martin Date: Tue, 1 Jun 2010 21:41:59 +0000 Subject: [PATCH] repaint the pixmaps even if they are the same size, but one hasn't alpha channel svn path=/trunk/KDE/kdelibs/; revision=1133522 --- paintutils.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/paintutils.cpp b/paintutils.cpp index b3be19ada..467ee9679 100644 --- a/paintutils.cpp +++ b/paintutils.cpp @@ -184,7 +184,7 @@ QPixmap transition(const QPixmap &from, const QPixmap &to, qreal amount) QPixmap startPixmap(from); QPixmap targetPixmap(to); - if (from.size() != to.size()) { + if (from.size() != to.size() || !from.hasAlphaChannel() || !to.hasAlphaChannel()) { centerPixmaps(startPixmap, targetPixmap); }