Fix issue that broke "Maximum possible intersections between 2 cubic bezier curve segments - 9" test.

This commit is contained in:
Jürg Lehni 2013-05-05 16:23:41 -07:00
parent d9e2d2a94a
commit c006b081f6

View file

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