From 060ab5e7f91bb9c5d11530ccc193aab162ccb046 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=BCrg=20Lehni?= Date: Mon, 28 Dec 2015 19:22:29 +0100 Subject: [PATCH] Only mark overlap segments as visited during #intersect(). --- src/path/PathItem.Boolean.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/path/PathItem.Boolean.js b/src/path/PathItem.Boolean.js index 84a1b58c..31e503a7 100644 --- a/src/path/PathItem.Boolean.js +++ b/src/path/PathItem.Boolean.js @@ -623,7 +623,9 @@ PathItem.inject(new function() { // If we are at a crossing and the other segment is part of the // boolean result, switch to it. if (other && isValid(other)) { - if (operation === 'intersect') + // We need to mark overlap segments as visited when + // processing intersection. + if (inter.isOverlap() && operation === 'intersect') seg._visited = true; seg = other; }