Fix offset error in selection rectangle.

pull/3/head
Jonathan Moore Liles 2008-07-20 16:38:11 -05:00
parent 5091277edb
commit b1b879dcad
1 changed files with 4 additions and 5 deletions

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;