From 13113abbf4028b623b571d9568059e17ba94fc4d Mon Sep 17 00:00:00 2001 From: Marco Martin Date: Tue, 1 Jun 2010 21:58:05 +0000 Subject: [PATCH] check alpha channels too svn path=/trunk/KDE/kdelibs/; revision=1133527 --- paintutils.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/paintutils.cpp b/paintutils.cpp index 467ee9679..75d30f129 100644 --- a/paintutils.cpp +++ b/paintutils.cpp @@ -144,7 +144,7 @@ QPainterPath roundedRectangle(const QRectF &rect, qreal radius) void centerPixmaps(QPixmap &from, QPixmap &to) { - if (from.size() == to.size()) { + if (from.size() == to.size() && from.hasAlphaChannel() && to.hasAlphaChannel()) { return; } QRect fromRect(from.rect());