From 0a06fcf67e4311ebab2fc6e29555bb8b0288a4ab Mon Sep 17 00:00:00 2001 From: itsmattkc <34096995+itsmattkc@users.noreply.github.com> Date: Sat, 14 Aug 2021 16:34:47 -0700 Subject: [PATCH] bezier: try lower precision epsilon --- app/common/bezier.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;