Restore full validation check for resulting paths.

This commit is contained in:
Jürg Lehni 2013-05-05 16:36:25 -07:00
parent c006b081f6
commit 83b68cdb8e

View file

@ -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 {