diff --git a/src/path/Path.js b/src/path/Path.js index fb2b3304..f90a3d76 100644 --- a/src/path/Path.js +++ b/src/path/Path.js @@ -116,7 +116,7 @@ var Path = this.Path = PathItem.extend({ // TODO: Port back to Sg removeSegments: function(from, to) { - var i = Base.pick(to, this._segments.length), + var i = Base.pick(to, this._segments.length - 1), from = from || 0; while (i >= from) this.removeSegment(i--);