From 6bb6002d1a97b66a8e0a172bb7a15a07888f65f7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ju=CC=88rg=20Lehni?= Date: Sat, 3 Jan 2015 20:35:51 +0100 Subject: [PATCH] No need to double tolerances here. --- src/path/PathItem.Boolean.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/path/PathItem.Boolean.js b/src/path/PathItem.Boolean.js index a20febce..833a55d9 100644 --- a/src/path/PathItem.Boolean.js +++ b/src/path/PathItem.Boolean.js @@ -119,8 +119,8 @@ PathItem.inject(new function() { if (length <= curveLength) { // If the selected location on the curve falls onto its // beginning or end, use the curve's center instead. - if (length <= 2 * tolerance - || curveLength - length <= 2 * tolerance) + if (length <= tolerance + || curveLength - length <= tolerance) length = curveLength / 2; var curve = node.segment.getCurve(), pt = curve.getPointAt(length),