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();
|
sequence()->sort();
|
||||||
|
|
||||||
if ( selected() )
|
if ( nselected() > 1 )
|
||||||
|
// only allow horizontal movement when part of a selection...
|
||||||
break;
|
break;
|
||||||
|
|
||||||
int Y = Fl::event_y() - parent()->y();
|
int Y = Fl::event_y() - parent()->y();
|
||||||
|
|
|
@ -163,6 +163,8 @@ public:
|
||||||
virtual Sequence_Widget *clone ( void ) const = 0;
|
virtual Sequence_Widget *clone ( void ) const = 0;
|
||||||
|
|
||||||
bool selected ( void ) const;
|
bool selected ( void ) const;
|
||||||
|
int nselected ( void ) const
|
||||||
|
{ return _selection.size(); }
|
||||||
void select ( void );
|
void select ( void );
|
||||||
void deselect ( void );
|
void deselect ( void );
|
||||||
void remove ( void );
|
void remove ( void );
|
||||||
|
|
Loading…
Reference in New Issue