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.
// We are at a crossing and the other segment is part of
// the boolean result, switch over.
// We need to mark overlap segments as visited when
// processing intersection and subtraction.
if (operator && inter._overlap
// We need to mark segments as visited when processing
// intersection and subtraction.
if (operator
&& (operator.intersect || operator.subtract)) {
seg._visited = true;
}