From 66b01973f04737d1548e04cc8e30667f2bf72731 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=BCrg=20Lehni?= Date: Fri, 18 Sep 2015 17:51:43 +0200 Subject: [PATCH] Simplify exclusion handling for new boolean code. --- src/path/PathItem.Boolean.js | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/path/PathItem.Boolean.js b/src/path/PathItem.Boolean.js index 4ce2ba5d..0ecde008 100644 --- a/src/path/PathItem.Boolean.js +++ b/src/path/PathItem.Boolean.js @@ -539,10 +539,8 @@ PathItem.inject(new function() { seg = other; } else if (operation === 'exclude') { // We need to handle exclusion separately, as we want to - // switch at each crossing, and at each intersection within - // the exclusion area even if it is not a crossing. - if (inter.isCrossing() - || path2 && path2.contains(seg._point)) { + // switch at each crossing. + if (inter.isCrossing()) { drawSegment(seg, 'exclude-cross', i, 'green'); seg = other; } else {