Only mark overlap segments as visited during #intersect().

This commit is contained in:
Jürg Lehni 2015-12-28 19:22:29 +01:00
parent f4f46fa985
commit 060ab5e7f9

View file

@ -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;
}