summaryrefslogtreecommitdiffstats
path: root/thirdparty/thorvg/src/common/tvgLines.cpp
diff options
context:
space:
mode:
authorRémi Verschelde <rverschelde@gmail.com>2024-08-27 15:54:05 +0200
committerRémi Verschelde <rverschelde@gmail.com>2024-08-27 15:54:10 +0200
commitf16d4af3422ba167e211bcffa9186d6d88a4f228 (patch)
tree83c0d8b7c33e036e2811276c5b422444288c4729 /thirdparty/thorvg/src/common/tvgLines.cpp
parentdb76de5de8a415b29be4c7dd84b99bd0fe260822 (diff)
downloadredot-engine-f16d4af3422ba167e211bcffa9186d6d88a4f228.tar.gz
thorvg: Update to 0.14.7
Fixes #95861.
Diffstat (limited to 'thirdparty/thorvg/src/common/tvgLines.cpp')
-rw-r--r--thirdparty/thorvg/src/common/tvgLines.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/thirdparty/thorvg/src/common/tvgLines.cpp b/thirdparty/thorvg/src/common/tvgLines.cpp
index 9d704900a5..49d992f127 100644
--- a/thirdparty/thorvg/src/common/tvgLines.cpp
+++ b/thirdparty/thorvg/src/common/tvgLines.cpp
@@ -79,7 +79,7 @@ float _bezAt(const Bezier& bz, float at, float length, LengthFunc lineLengthFunc
Bezier left;
bezSplitLeft(right, t, left);
length = _bezLength(left, lineLengthFunc);
- if (fabsf(length - at) < BEZIER_EPSILON || fabsf(smallest - biggest) < BEZIER_EPSILON) {
+ if (fabsf(length - at) < BEZIER_EPSILON || fabsf(smallest - biggest) < 1e-3f) {
break;
}
if (length < at) {