From 374107c439715139ab9429c2191e809ba23b0da9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=BCrg=20Lehni?= Date: Sat, 18 Mar 2017 16:46:55 +0100 Subject: [PATCH] Minor cleanup for previous commit. --- src/path/Curve.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/path/Curve.js b/src/path/Curve.js index f5f230e6..55363f8d 100644 --- a/src/path/Curve.js +++ b/src/path/Curve.js @@ -2055,8 +2055,7 @@ new function() { // Scope for bezier intersection using fat-line clipping // point overlaps with the second curve's start- / end-point, // but only if haven't found a line-line intersection already: // #805#issuecomment-148503018 - - if (!(straight && locations.length > before)) { + if (!straight || locations.length === before) { for (var i = 0; i < 4; i++) { var t1 = i >> 1, // 0, 0, 1, 1 t2 = i & 1, // 0, 1, 0, 1