repaint the pixmaps even if they are the same size, but one hasn't alpha channel

svn path=/trunk/KDE/kdelibs/; revision=1133522
This commit is contained in:
Marco Martin 2010-06-01 21:41:59 +00:00
parent 76ead449e5
commit 35537630f6

View File

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