diff options
author | Svenn-Arne Dragly <svenn-arne.dragly@qt.io> | 2018-03-14 16:36:09 +0100 |
---|---|---|
committer | Svenn-Arne Dragly <svenn-arne.dragly@qt.io> | 2018-03-26 15:53:10 +0000 |
commit | 50cfbd6112a2682228cdf34cd72b5abae967cdb2 (patch) | |
tree | 369c97df16b15c5f3bd86cc32e888571b1f3cf53 /src/plugins/sqldrivers/sqlite | |
parent | 411a4cb67cd3d976ddbd94b37a0ce936bfb223e5 (diff) |
Animation: Fix case where QEasingCurve::valueForProgress returns nan
Previously, we would divide by zero in BezierEase::findTForX if factorT3
was zero when solving the cubic equation.
This change fixes the problem by adding solutions for the special cases
where the cubic equation can be reduced to a quadratic or linear
equation.
This change also adds tests that cover cases where the equation becomes
quadratic, linear or invalid.
Task-number: QTBUG-67061
Change-Id: I2b59f7e0392eb807663c3c8927509fd8b226ebc7
Reviewed-by: Christian Stromme <christian.stromme@qt.io>
Diffstat (limited to 'src/plugins/sqldrivers/sqlite')
0 files changed, 0 insertions, 0 deletions