Fix prevention of region drags before time 0 (#3947).

git-svn-id: svn://localhost/ardour2/branches/3.0@9318 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
Carl Hetherington 2011-04-06 23:12:45 +00:00
parent 72b0911421
commit 58bd627666
1 changed files with 2 additions and 2 deletions

View File

@ -487,13 +487,13 @@ RegionMotionDrag::compute_x_delta (GdkEvent const * event, framepos_t* pending_r
if ((*pending_region_position != _last_frame_position) && x_move_allowed) {
/* x movement since last time */
/* x movement since last time (in pixels) */
dx = (static_cast<double> (*pending_region_position) - _last_frame_position) / _editor->frames_per_unit;
/* total x movement */
framecnt_t total_dx = *pending_region_position;
if (regions_came_from_canvas()) {
total_dx = total_dx - grab_frame () + _pointer_frame_offset;
total_dx = total_dx - grab_frame ();
}
/* check that no regions have gone off the start of the session */