fading works fine if one of the pixmaps is empty
in this case, the emtpy pixmap behaves just like a transparent one svn path=/trunk/KDE/kdelibs/; revision=1114906
This commit is contained in:
parent
8dcae8f83c
commit
911b361064
@ -177,7 +177,7 @@ void centerPixmaps(QPixmap &from, QPixmap &to)
|
|||||||
|
|
||||||
QPixmap transition(const QPixmap &from, const QPixmap &to, qreal amount)
|
QPixmap transition(const QPixmap &from, const QPixmap &to, qreal amount)
|
||||||
{
|
{
|
||||||
if (from.isNull() || to.isNull()) {
|
if (from.isNull() && to.isNull()) {
|
||||||
return from;
|
return from;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user