Increase the fat-line clipping recursion threshold to 26.

As suggested by @iconexperience. Closes #899
This commit is contained in:
Jürg Lehni 2016-01-12 11:59:54 +01:00
parent 0c3406894b
commit 3857be62c4

View file

@ -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],