mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-07 23:35:03 +01:00
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
1 changed files with 2 additions and 0 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue