GUI: always write olders len in UndoStep

This commit is contained in:
tildearrow 2023-10-26 17:38:39 -05:00
parent 0c00322004
commit ad4d08243a

View file

@ -83,6 +83,8 @@ void FurnaceGUI::makeUndo(ActionType action) {
s.selStart=selStart; s.selStart=selStart;
s.selEnd=selEnd; s.selEnd=selEnd;
s.order=curOrder; s.order=curOrder;
s.oldOrdersLen=oldOrdersLen;
s.newOrdersLen=e->curSubSong->ordersLen;
s.nibble=curNibble; s.nibble=curNibble;
size_t subSong=e->getCurrentSubSong(); size_t subSong=e->getCurrentSubSong();
switch (action) { switch (action) {
@ -94,8 +96,6 @@ void FurnaceGUI::makeUndo(ActionType action) {
} }
} }
} }
s.oldOrdersLen=oldOrdersLen;
s.newOrdersLen=e->curSubSong->ordersLen;
if (oldOrdersLen!=e->curSubSong->ordersLen) { if (oldOrdersLen!=e->curSubSong->ordersLen) {
doPush=true; doPush=true;
} }