From 3857be62c40a9354db7b407b3b71a716e8368021 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=BCrg=20Lehni?= Date: Tue, 12 Jan 2016 11:59:54 +0100 Subject: [PATCH] Increase the fat-line clipping recursion threshold to 26. As suggested by @iconexperience. Closes #899 --- src/path/Curve.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/path/Curve.js b/src/path/Curve.js index 5098f21c..271d5677 100644 --- a/src/path/Curve.js +++ b/src/path/Curve.js @@ -1438,9 +1438,8 @@ new function() { // Scope for intersection using bezier fat-line clipping // Avoid deeper recursion. // NOTE: @iconexperience determined that more than 20 recursions are // needed sometimes, depending on the tDiff threshold values further - // below when determining which curve converges the least. He also - // recommended a threshold of 0.5 instead of the initial 0.8, see: #565 - if (++recursion >= 24) + // below when determining which curve converges the least: #565, #899 + if (++recursion >= 26) return; // Let P be the first curve and Q be the second var q0x = v2[0], q0y = v2[1], q3x = v2[6], q3y = v2[7],