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:
Jonathan Moore Liles 2008-12-28 00:27:43 -06:00
parent 78afa80db8
commit f3226cd1a0
2 changed files with 4 additions and 1 deletions

View File

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

View File

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