Boolean -fix: Preserve the order of intersections found (Curve-Line) according to the PathItem they belong to.

This commit is contained in:
hkrish 2013-09-13 02:44:51 +02:00
parent abe0e5e059
commit 669fb1638a

View file

@ -1394,11 +1394,12 @@ new function() { // Scope for methods that require numerical integration
// We do have a point on the infinite line. Check if it falls on
// the line *segment*.
if (point.x >= 0 && point.x <= rl2x)
addLocation(locations,
flip ? curve2 : curve1,
// The actual intersection point
t, Curve.evaluate(vc, t, 0),
flip ? curve1 : curve2);
if(flip)
addLocation(locations, curve1, undefined, Curve.evaluate(vc, t, 0),
curve2, t, Curve.evaluate(vc, t, 0));
else
addLocation(locations, curve1, t,
Curve.evaluate(vc, t, 0), curve2);
}
}
}