diff --git a/src/path/Curve.js b/src/path/Curve.js index fe8e6afd..25e2b542 100644 --- a/src/path/Curve.js +++ b/src/path/Curve.js @@ -1162,11 +1162,7 @@ new function() { // Scope for methods that require numerical integration && (Curve.isLinear(v2) || Curve.isFlatEnough(v2, /*#=*/ Numerical.TOLERANCE))) { // See if the parametric equations of the lines interesct. - var point = Line.intersect( - v1[0], v1[1], v1[6], v1[7], - v2[0], v2[1], v2[6], v2[7]); - if (point) - addLocation(locations, curve1, null, point, curve2); + addLineIntersection(v1, v2, curve1, curve2, locations); } else { // Subdivide both curves, and see if they intersect. // If one of the curves is flat already, no further subdivion