1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-07-25 00:48:10 +02:00

Changes via History affect selection exactly as undo/redo...

... I don't know a good reason why they didn't before.  It was ancient (2010)
behavior.

This also means that RollbackState really will properly rollback the selection
too, even when there are redo items.

This simplifies away an odd special case.
This commit is contained in:
Paul Licameli 2018-02-16 14:58:26 -05:00
parent af81dfa10b
commit 8c486b50f6

View File

@ -313,12 +313,7 @@ const UndoState &UndoManager::SetStateTo
current = n;
if (current == (int)(stack.size()-1)) {
*selectedRegion = stack[current]->state.selectedRegion;
}
else {
*selectedRegion = stack[current + 1]->state.selectedRegion;
}
*selectedRegion = stack[current]->state.selectedRegion;
lastAction = wxT("");
mayConsolidate = false;