From eb09ec2442085d947253d944f560f5df1b306ecf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=BCrg=20Lehni?= Date: Sun, 6 Mar 2011 13:07:49 +0000 Subject: [PATCH] Fix error in Curve evaluation. --- src/path/Curve.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/path/Curve.js b/src/path/Curve.js index 6721a0a6..888ece54 100644 --- a/src/path/Curve.js +++ b/src/path/Curve.js @@ -167,10 +167,10 @@ var Curve = this.Curve = Base.extend({ function evaluate(that, t, type) { // Calculate the polynomial coefficients. caution: handles are relative // to points - var point1 = this._segment1._point, - handle1 = this._segment1._handleOut, - handle2 = this._segment2._handleIn, - point2 = this._segment2._point, + var point1 = that._segment1._point, + handle1 = that._segment1._handleOut, + handle2 = that._segment2._handleIn, + point2 = that._segment2._point, x, y; // Handle special case at beginning / end of curve