diff --git a/src/path/PathItem.Boolean.js b/src/path/PathItem.Boolean.js index 6c7bf4cf..73423dda 100644 --- a/src/path/PathItem.Boolean.js +++ b/src/path/PathItem.Boolean.js @@ -800,6 +800,7 @@ PathItem.inject(new function() { }); var items = [], excluded = {}, + clockwise = paths[0].isClockwise(), isNonZero = this.getFillRule() === 'nonzero', windings = isNonZero && Base.each(paths, function(path) { this.push(path.isClockwise() ? 1 : -1); @@ -832,12 +833,13 @@ PathItem.inject(new function() { isContained = true; if (!excluded[j]) { // Set opposite orientation of containing path. - path.setClockwise(!paths[j].isClockwise()); + clockwise = !paths[j].isClockwise(); break; } } } if (!exclude) { + path.setClockwise(clockwise); items.push(path); } }