Fix issue with a path not being selected when one of its segment is selected directly.

This commit is contained in:
Jürg Lehni 2011-06-17 19:00:41 +01:00
parent ca16e43c1f
commit fe416e294d

View file

@ -181,7 +181,7 @@ var Segment = this.Segment = Base.extend({
_setSelected: function(point, selected) {
var path = this._path,
selected = !!selected, // convert to boolean
state = this._selectionState,
state = this._selectionState || 0,
// For performance reasons use array indices to access the various
// selection states: 0 = point, 1 = handleIn, 2 = handleOut
selection = [