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:
parent
76ead449e5
commit
35537630f6
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user