From ccefc644181837892051bc6b8b448d60b5aec28c Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Tue, 26 Nov 2019 23:49:06 +0100 Subject: [PATCH] Reset paste-count, paste-offset on undo/redo This fixes an workflow edge-case when undoing a paste in order to paste at a different location on the same track or automation lane. After undo, any accumulated paste-offset needs to be reset --- gtk2_ardour/editor_ops.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/gtk2_ardour/editor_ops.cc b/gtk2_ardour/editor_ops.cc index 48968378eb..9202c3f742 100644 --- a/gtk2_ardour/editor_ops.cc +++ b/gtk2_ardour/editor_ops.cc @@ -154,6 +154,7 @@ Editor::undo (uint32_t n) if (_drags->active ()) { _drags->abort (); } + paste_count = 0; if (_session) { _session->undo (n); @@ -178,6 +179,7 @@ Editor::redo (uint32_t n) if (_drags->active ()) { _drags->abort (); } + paste_count = 0; if (_session) { _session->redo (n);