diff --git a/src/path/PathItem.Boolean.js b/src/path/PathItem.Boolean.js index 3df57ed0..e0173073 100644 --- a/src/path/PathItem.Boolean.js +++ b/src/path/PathItem.Boolean.js @@ -176,7 +176,8 @@ PathItem.inject(new function() { segment = segment.getNext(); } while (segment && !segment._visited && segment !== intersection); // Avoid stray segments and incomplete paths - if (path._segments.length > 2 || !path.isPolygon()) { + var amount = path._segments.length; + if (amount > 1 && (amount > 2 || !path.isPolygon())) { path.setClosed(true); result.addChild(path, true); } else {