Fix filtering of duplace points in path fitting code.

This commit is contained in:
Jürg Lehni 2011-06-12 18:40:24 +01:00
parent 611415fea7
commit 065777291e

View file

@ -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;
}
}