thanks to André Wöbbeking for reminding me that qFuzzyCompare doesn't like zero
svn path=/trunk/KDE/kdelibs/; revision=1214646
This commit is contained in:
parent
9f5fdb1385
commit
d9a154e84a
@ -163,7 +163,7 @@ QPixmap transition(const QPixmap &from, const QPixmap &to, qreal amount)
|
||||
return from;
|
||||
}
|
||||
|
||||
if (qFuzzyCompare(amount, 0)) {
|
||||
if (qFuzzyCompare(amount + 1, qreal(1.0))) {
|
||||
return from;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user