From ac04029f6e21c227d787744c8fc3bc6940bd24f4 Mon Sep 17 00:00:00 2001 From: hkrish Date: Tue, 29 Oct 2013 15:52:46 +0100 Subject: [PATCH] Curve-line intersection fix --- src/path/Curve.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/path/Curve.js b/src/path/Curve.js index 75a0098a..c11ee3ff 100644 --- a/src/path/Curve.js +++ b/src/path/Curve.js @@ -1460,7 +1460,7 @@ 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){ - var tl = Curve.getParameterOf(vl, point.x, point.y); + var tl = Curve.getParameterOf([0, 0, 0, 0, rl2x, 0, rl2x, 0], point.x, 0); // Interpolate the parameter for the intersection on line. var t1 = flip ? tl : t, t2 = flip ? t : tl;