Mark all segments as visited when processing intersection and subtraction, not just overlaps.

This commit is contained in:
Jürg Lehni 2016-06-13 12:09:17 +02:00
parent af5a5b5f2d
commit 8da82fed19

View file

@ -610,9 +610,9 @@ PathItem.inject(new function() {
// segment. See isValid()/getWinding() for explanations. // segment. See isValid()/getWinding() for explanations.
// We are at a crossing and the other segment is part of // We are at a crossing and the other segment is part of
// the boolean result, switch over. // the boolean result, switch over.
// We need to mark overlap segments as visited when // We need to mark segments as visited when processing
// processing intersection and subtraction. // intersection and subtraction.
if (operator && inter._overlap if (operator
&& (operator.intersect || operator.subtract)) { && (operator.intersect || operator.subtract)) {
seg._visited = true; seg._visited = true;
} }