From 6b8cadef0170b6d8e7a067330c30b964c7e5b48d Mon Sep 17 00:00:00 2001 From: Tim Mayberry Date: Wed, 30 Nov 2016 19:47:02 +1000 Subject: 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. --- gtk2_ardour/editor_ops.cc | 21 +++++++++++---------- 1 file changed, 11 insertions(+), 10 deletions(-) diff --git a/gtk2_ardour/editor_ops.cc b/gtk2_ardour/editor_ops.cc index 25d1c73766..6171c77d2e 100644 --- a/gtk2_ardour/editor_ops.cc +++ b/gtk2_ardour/editor_ops.cc @@ -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(); - } - - selection->move_time (distance); + 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); + } commit_reversible_command (); } } -- cgit v1.2.3