From: Ben Loftis Date: Wed, 21 Oct 2009 16:20:05 +0000 (+0000) Subject: Fixes to pointer constraints when copying in lock edit mode; make them behave the... X-Git-Tag: 2.8.16~693 X-Git-Url: https://main.carlh.net/gitweb/?a=commitdiff_plain;h=e75dda66e5d803b51ccb602561b16ff923e65058;p=ardour.git Fixes to pointer constraints when copying in lock edit mode; make them behave the same as when just dragging regions. Fixes some or all of mantis 2573. thanks carlh git-svn-id: svn://localhost/ardour2/branches/2.0-ongoing@5841 d708f5d6-7413-0410-9779-e7cbd77b26cf --- diff --git a/gtk2_ardour/editor_mouse.cc b/gtk2_ardour/editor_mouse.cc index 1bcd75e5e6..83bb3bd5c6 100644 --- a/gtk2_ardour/editor_mouse.cc +++ b/gtk2_ardour/editor_mouse.cc @@ -3727,12 +3727,7 @@ Editor::region_drag_motion_callback (ArdourCanvas::Item* item, GdkEvent* event) bool x_move_allowed; if (Config->get_edit_mode() == Lock) { - if (drag_info.copy) { - x_move_allowed = !drag_info.x_constrained; - } else { - /* in locked edit mode, reverse the usual meaning of x_constrained */ - x_move_allowed = drag_info.x_constrained; - } + x_move_allowed = drag_info.x_constrained; } else { x_move_allowed = !drag_info.x_constrained; } @@ -3979,7 +3974,7 @@ Editor::region_drag_finished_callback (ArdourCanvas::Item* item, GdkEvent* event the drag. */ - if (Config->get_edit_mode() == Lock && !drag_info.copy) { + if (Config->get_edit_mode() == Lock) { drag_info.x_constrained = !drag_info.x_constrained; }