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; }