Fix selection bug for Control Points.
A recent selection model change interfered with the ability to edit the Y-axis of control points.
This commit is contained in:
parent
78afa80db8
commit
f3226cd1a0
|
@ -112,7 +112,8 @@ Control_Point::handle ( int m )
|
|||
{
|
||||
sequence()->sort();
|
||||
|
||||
if ( selected() )
|
||||
if ( nselected() > 1 )
|
||||
// only allow horizontal movement when part of a selection...
|
||||
break;
|
||||
|
||||
int Y = Fl::event_y() - parent()->y();
|
||||
|
|
|
@ -163,6 +163,8 @@ public:
|
|||
virtual Sequence_Widget *clone ( void ) const = 0;
|
||||
|
||||
bool selected ( void ) const;
|
||||
int nselected ( void ) const
|
||||
{ return _selection.size(); }
|
||||
void select ( void );
|
||||
void deselect ( void );
|
||||
void remove ( void );
|
||||
|
|
Loading…
Reference in New Issue