mirror of
https://github.com/Ardour/ardour.git
synced 2026-01-30 08:53:08 +01:00
Don't move the Range Selection after performing Multi Duplicate
This is necessary for a single Duplicate so you can keep duplicating but it doesn't make sense to move it for Multi Duplicate.
This commit is contained in:
parent
b7bee5c903
commit
6b8cadef01
1 changed files with 11 additions and 10 deletions
|
|
@ -4937,18 +4937,19 @@ Editor::duplicate_selection (float times)
|
|||
}
|
||||
|
||||
if (in_command) {
|
||||
// now "move" range selection to after the current range selection
|
||||
framecnt_t distance = 0;
|
||||
if (times == 1.0f) {
|
||||
// now "move" range selection to after the current range selection
|
||||
framecnt_t distance = 0;
|
||||
|
||||
if (clicked_selection) {
|
||||
distance = selection->time[clicked_selection].end -
|
||||
selection->time[clicked_selection].start;
|
||||
} else {
|
||||
distance = selection->time.end_frame() - selection->time.start();
|
||||
if (clicked_selection) {
|
||||
distance =
|
||||
selection->time[clicked_selection].end - selection->time[clicked_selection].start;
|
||||
} else {
|
||||
distance = selection->time.end_frame () - selection->time.start ();
|
||||
}
|
||||
|
||||
selection->move_time (distance);
|
||||
}
|
||||
|
||||
selection->move_time (distance);
|
||||
|
||||
commit_reversible_command ();
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue