From 83b68cdb8e7cffdfea0b39553673137309e21c51 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=BCrg=20Lehni?= Date: Sun, 5 May 2013 16:36:25 -0700 Subject: [PATCH] Restore full validation check for resulting paths. --- src/path/PathItem.Boolean.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 {