From 970766d4686af34a8af67e6bc36500a273499f53 Mon Sep 17 00:00:00 2001 From: "Aaron J. Seigo" Date: Wed, 24 Jun 2009 21:53:18 +0000 Subject: [PATCH] be careful with the to/from svn path=/trunk/KDE/kdelibs/; revision=986690 --- paintutils.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/paintutils.cpp b/paintutils.cpp index 72c538130..e74a75c2b 100644 --- a/paintutils.cpp +++ b/paintutils.cpp @@ -135,6 +135,10 @@ QPainterPath roundedRectangle(const QRectF &rect, qreal radius) 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) {