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
This commit is contained in:
Ben Loftis 2009-10-21 16:20:05 +00:00
parent 6588630c30
commit e75dda66e5

View file

@ -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;
}