13
0

slight correction to last copy-drag-constrained logic

git-svn-id: svn://localhost/ardour2/trunk@1537 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
Paul Davis 2007-02-28 23:00:00 +00:00
parent d6ce26e9e3
commit c6d7221890

View File

@ -2834,9 +2834,11 @@ Editor::region_drag_motion_callback (ArdourCanvas::Item* item, GdkEvent* event)
if we haven't passed the move threshold yet
*/
if ((drag_info.x_constrained && (drag_info.last_trackview != &rv->get_time_axis_view())) &&
if ((!drag_info.x_constrained || (drag_info.last_trackview != &rv->get_time_axis_view())) &&
drag_info.copy && drag_info.move_threshold_passed && drag_info.want_move_threshold) {
cerr << "COPY, xcons = " << drag_info.x_constrained << " last = " << drag_info.last_trackview->name() << " rv = " << rv->get_time_axis_view().name() << endl;
drag_info.want_move_threshold = false; // don't copy again
/* this is committed in the grab finished callback. */