Browse Source

Fix selection bug for Control Points.

A recent selection model change interfered with the ability to edit
the Y-axis of control points.
tags/non-daw-v1.1.0
Jonathan Moore Liles 16 years ago
parent
commit
f3226cd1a0
2 changed files with 4 additions and 1 deletions
  1. +2
    -1
      Timeline/Control_Point.C
  2. +2
    -0
      Timeline/Sequence_Widget.H

+ 2
- 1
Timeline/Control_Point.C 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();


+ 2
- 0
Timeline/Sequence_Widget.H 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 );


Loading…
Cancel
Save