Fix offset error in selection rectangle.
This commit is contained in:
parent
5091277edb
commit
b1b879dcad
|
@ -1181,9 +1181,9 @@ Timeline::handle ( int m )
|
||||||
{
|
{
|
||||||
assert( ! drag );
|
assert( ! drag );
|
||||||
|
|
||||||
drag = new Drag( X - x(), Y - y() );
|
drag = new Drag( X, Y );
|
||||||
_selection.x = drag->x;
|
_selection.x = X;
|
||||||
_selection.y = drag->y;
|
_selection.y = Y;
|
||||||
|
|
||||||
if ( ! Fl::event_ctrl() )
|
if ( ! Fl::event_ctrl() )
|
||||||
select_none();
|
select_none();
|
||||||
|
@ -1238,8 +1238,7 @@ Timeline::handle ( int m )
|
||||||
else
|
else
|
||||||
select( _selection );
|
select( _selection );
|
||||||
|
|
||||||
_selection.w = _selection.h = 0;
|
_selection.x = _selection.y =_selection.w = _selection.h = 0;
|
||||||
|
|
||||||
|
|
||||||
redraw_overlay();
|
redraw_overlay();
|
||||||
return 1;
|
return 1;
|
||||||
|
|
Loading…
Reference in New Issue