diff --git a/app/common/bezier.cpp b/app/common/bezier.cpp index af75fbb4b..10fd88a2a 100644 --- a/app/common/bezier.cpp +++ b/app/common/bezier.cpp @@ -61,7 +61,7 @@ double Bezier::CalculateTFromX(bool cubic, double x, double a, double b, double double mid = (bottom + top) * 0.5; double test = cubic ? CubicTtoY(a, b, c, d, mid) : QuadraticTtoY(a, b, c, mid); - if (qFuzzyCompare(test, x)) { + if (qAbs(test - x) < 0.000001) { return mid; } else if (x > test) { bottom = mid;