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
This commit is contained in:
Robin Gareus 2019-11-26 23:49:06 +01:00
parent be1012d64e
commit ccefc64418
Signed by: rgareus
GPG Key ID: A090BCE02CF57F04
1 changed files with 2 additions and 0 deletions

View File

@ -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);