summaryrefslogtreecommitdiff
blob: f4103bbea225d30e5e9c655a8a5e83267d02ccaa (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
Index: branches/KDE/4.3/kdelibs/plasma/paintutils.cpp
===================================================================
--- branches/KDE/4.3/kdelibs/plasma/paintutils.cpp	(revision 1038147)
+++ branches/KDE/4.3/kdelibs/plasma/paintutils.cpp	(revision 1038148)
@@ -138,6 +138,10 @@
 
 QPixmap transition(const QPixmap &from, const QPixmap &to, qreal amount)
 {
+    if (from.isNull() || to.isNull()) {
+        return from;
+    }
+
     int value = int(0xff * amount);
 
     if (value == 0) {