diff --git a/src/path/PathFitter.js b/src/path/PathFitter.js index f8d9cf28..b12dcbfe 100644 --- a/src/path/PathFitter.js +++ b/src/path/PathFitter.js @@ -195,7 +195,7 @@ var PathFitter = Base.extend({ if (Math.abs(df) < Numerical.TOLERANCE) return u; // u = u - f(u) / f'(u) - return u - pt.dot(pt1) / df; + return u - diff.dot(pt1) / df; }, // Evaluate a Bezier curve at a particular parameter value