mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-05 20:32:00 -05:00
Fix default value for end in Path#removeSegments(), so the last segment gets removed too.
This commit is contained in:
parent
e23ac6809b
commit
064f17eaec
1 changed files with 1 additions and 1 deletions
|
@ -526,7 +526,7 @@ var Path = this.Path = PathItem.extend({
|
|||
*/
|
||||
removeSegments: function(from, to) {
|
||||
from = from || 0;
|
||||
to = Base.pick(to, this._segments.length - 1);
|
||||
to = Base.pick(to, this._segments.length);
|
||||
var segments = this._segments,
|
||||
curves = this._curves,
|
||||
last = to >= segments.length,
|
||||
|
|
Loading…
Reference in a new issue