diff options
author | Ben Loftis <ben@harrisonconsoles.com> | 2018-02-26 19:40:24 -0600 |
---|---|---|
committer | Ben Loftis <ben@harrisonconsoles.com> | 2018-02-26 19:40:24 -0600 |
commit | 292f998298bfb83b4f8b3f2c537cbff307cb6a22 (patch) | |
tree | 599cb751c7bf98c4b1c8e001fdfeacef686a4dc9 /gtk2_ardour/editor_ops.cc | |
parent | a699a637e44e6a4f59488868a031667d2a283c8e (diff) |
Fix bug: sequential pasting to the same time, but different tracks, would trigger paste offset.
Diffstat (limited to 'gtk2_ardour/editor_ops.cc')
-rw-r--r-- | gtk2_ardour/editor_ops.cc | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/gtk2_ardour/editor_ops.cc b/gtk2_ardour/editor_ops.cc index fba1e2de28..1773b33b19 100644 --- a/gtk2_ardour/editor_ops.cc +++ b/gtk2_ardour/editor_ops.cc @@ -4774,10 +4774,7 @@ Editor::paste_internal (samplepos_t position, float times, const int32_t sub_num DEBUG_TRACE (DEBUG::CutNPaste, string_compose ("preferred edit position is %1\n", position)); } - if (position == last_paste_pos) { - /* repeated paste in the same position */ - ++paste_count; - } else { + if (position != last_paste_pos) { /* paste in new location, reset repeated paste state */ paste_count = 0; last_paste_pos = position; @@ -4866,6 +4863,8 @@ Editor::paste_internal (samplepos_t position, float times, const int32_t sub_num } } + ++paste_count; + commit_reversible_command (); } |