mirror of
https://github.com/Ardour/ardour.git
synced 2026-01-27 07:28:17 +01:00
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:
parent
6588630c30
commit
e75dda66e5
1 changed files with 2 additions and 7 deletions
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue