mirror of
https://github.com/tildearrow/furnace.git
synced 2024-11-27 06:53:01 +00:00
GUI: always write olders len in UndoStep
This commit is contained in:
parent
0c00322004
commit
ad4d08243a
1 changed files with 2 additions and 2 deletions
|
@ -83,6 +83,8 @@ void FurnaceGUI::makeUndo(ActionType action) {
|
|||
s.selStart=selStart;
|
||||
s.selEnd=selEnd;
|
||||
s.order=curOrder;
|
||||
s.oldOrdersLen=oldOrdersLen;
|
||||
s.newOrdersLen=e->curSubSong->ordersLen;
|
||||
s.nibble=curNibble;
|
||||
size_t subSong=e->getCurrentSubSong();
|
||||
switch (action) {
|
||||
|
@ -94,8 +96,6 @@ void FurnaceGUI::makeUndo(ActionType action) {
|
|||
}
|
||||
}
|
||||
}
|
||||
s.oldOrdersLen=oldOrdersLen;
|
||||
s.newOrdersLen=e->curSubSong->ordersLen;
|
||||
if (oldOrdersLen!=e->curSubSong->ordersLen) {
|
||||
doPush=true;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue