check alpha channels too

svn path=/trunk/KDE/kdelibs/; revision=1133527
This commit is contained in:
Marco Martin 2010-06-01 21:58:05 +00:00
parent 35537630f6
commit 13113abbf4

View File

@ -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());