mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-22 07:19:57 -05:00
Use Path#_countSelectedSegment() in #removeSegments() as well.
This commit is contained in:
parent
c67209f889
commit
e31081f2fc
1 changed files with 1 additions and 1 deletions
|
@ -360,8 +360,8 @@ var Path = this.Path = PathItem.extend({
|
|||
for (var i = 0; i < amount; i++) {
|
||||
var segment = removed[i];
|
||||
if (segment._selectionState) {
|
||||
this._selectedSegmentCount--;
|
||||
segment._selectionState = 0;
|
||||
this._countSelectedSegment(segment);
|
||||
}
|
||||
// Clear the indices and path references of the removed segments
|
||||
removed._index = removed._path = undefined;
|
||||
|
|
Loading…
Reference in a new issue