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:
parent
be1012d64e
commit
ccefc64418
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue