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:
Aaron J. Seigo 2011-01-15 19:05:03 +00:00
parent 9f5fdb1385
commit d9a154e84a

View File

@ -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;
}