From 911b36106434e05e488763572e51c63427729653 Mon Sep 17 00:00:00 2001 From: Daniel Laidig Date: Wed, 14 Apr 2010 20:53:45 +0000 Subject: [PATCH] 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 --- paintutils.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/paintutils.cpp b/paintutils.cpp index 4becf2c1a..6155a9a98 100644 --- a/paintutils.cpp +++ b/paintutils.cpp @@ -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; }