From c006b081f628a6355ab515ecf949f98d735f4fc8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=BCrg=20Lehni?= Date: Sun, 5 May 2013 16:23:41 -0700 Subject: [PATCH] Fix issue that broke "Maximum possible intersections between 2 cubic bezier curve segments - 9" test. --- src/path/PathItem.Boolean.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/path/PathItem.Boolean.js b/src/path/PathItem.Boolean.js index 17f72b25..3df57ed0 100644 --- a/src/path/PathItem.Boolean.js +++ b/src/path/PathItem.Boolean.js @@ -176,7 +176,7 @@ PathItem.inject(new function() { segment = segment.getNext(); } while (segment && !segment._visited && segment !== intersection); // Avoid stray segments and incomplete paths - if (path._segments.length > 2) { + if (path._segments.length > 2 || !path.isPolygon()) { path.setClosed(true); result.addChild(path, true); } else {