check alpha channels too
svn path=/trunk/KDE/kdelibs/; revision=1133527
This commit is contained in:
parent
35537630f6
commit
13113abbf4
@ -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());
|
||||
|
Loading…
Reference in New Issue
Block a user