From 065777291e9db11ad19325d2dc6d9dacb9bff160 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=BCrg=20Lehni?= Date: Sun, 12 Jun 2011 18:40:24 +0100 Subject: [PATCH] Fix filtering of duplace points in path fitting code. --- 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 b12dcbfe..6a2028bf 100644 --- a/src/path/PathFitter.js +++ b/src/path/PathFitter.js @@ -26,7 +26,7 @@ var PathFitter = Base.extend({ for (var i = 0, l = segments.length; i < l; i++) { var point = segments[i].point.clone(); if (!prev || !prev.equals(point)) { - this.points[i] = point; + this.points.push(point); prev = point; } }