fading works fine if one of the pixmaps is empty

in this case, the emtpy pixmap behaves just like a transparent one

svn path=/trunk/KDE/kdelibs/; revision=1114906
This commit is contained in:
Daniel Laidig 2010-04-14 20:53:45 +00:00
parent 8dcae8f83c
commit 911b361064

View File

@ -177,7 +177,7 @@ void centerPixmaps(QPixmap &from, QPixmap &to)
QPixmap transition(const QPixmap &from, const QPixmap &to, qreal amount)
{
if (from.isNull() || to.isNull()) {
if (from.isNull() && to.isNull()) {
return from;
}