From 80e1a54171acd6ee33ae3bde02db0d93f8384842 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ju=CC=88rg=20Lehni?= Date: Sat, 3 Jan 2015 01:17:48 +0100 Subject: [PATCH] Dirty temporary fix for new median winding code that struggles with circles. --- src/path/PathItem.Boolean.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/path/PathItem.Boolean.js b/src/path/PathItem.Boolean.js index 7ba07a42..50c39f92 100644 --- a/src/path/PathItem.Boolean.js +++ b/src/path/PathItem.Boolean.js @@ -111,7 +111,8 @@ PathItem.inject(new function() { // (amortised) time. for (var j = 0; j < 3; j++) { // Try the points at 1/4, 2/4 and 3/4 of the total length: - var length = totalLength * (j + 1) / 4; + var length = totalLength * (j + 1) / + /*#=*/(4 - 2 * Numerical.TOLERANCE); for (k = 0, m = chain.length; k < m; k++) { var entry = chain[k]; if (length <= entry.length) {