No need to filter intersections if there were no overlaps.

This commit is contained in:
Jürg Lehni 2016-01-07 12:15:11 +01:00
parent af797df5ba
commit 231dba83b2

View file

@ -807,7 +807,7 @@ PathItem.inject(new function() {
if (hasCrossings) {
// Divide any remaining intersections that are still part of
// valid paths after the removal of overlaps.
divideLocations(intersections, function(inter) {
divideLocations(intersections, hasOverlaps && function(inter) {
// Check both involved curves to see if they're still valid,
// meaning they are still part of their paths.
var curve1 = inter.getCurve(),