Browse Source

Fix offset error in selection rectangle.

tags/non-daw-v1.1.0
Jonathan Moore Liles 17 years ago
parent
commit
b1b879dcad
1 changed files with 4 additions and 5 deletions
  1. +4
    -5
      Timeline/Timeline.C

+ 4
- 5
Timeline/Timeline.C View File

@@ -1181,9 +1181,9 @@ Timeline::handle ( int m )
{
assert( ! drag );

drag = new Drag( X - x(), Y - y() );
_selection.x = drag->x;
_selection.y = drag->y;
drag = new Drag( X, Y );
_selection.x = X;
_selection.y = Y;

if ( ! Fl::event_ctrl() )
select_none();
@@ -1238,8 +1238,7 @@ Timeline::handle ( int m )
else
select( _selection );

_selection.w = _selection.h = 0;

_selection.x = _selection.y =_selection.w = _selection.h = 0;

redraw_overlay();
return 1;


Loading…
Cancel
Save