From 928b7df01e7a746ef3f167e23e38056ed86cb0e6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=BCrg=20Lehni?= Date: Mon, 6 Jun 2011 17:18:22 +0100 Subject: [PATCH] Fix typo introduced in previous refactoring. --- src/path/PathFitter.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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