Use Path#_countSelectedSegment() in #removeSegments() as well.

This commit is contained in:
Jürg Lehni 2011-05-26 11:38:08 +01:00
parent c67209f889
commit e31081f2fc

View file

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