From ad4d08243a44cf730278b99346190d02316f69b2 Mon Sep 17 00:00:00 2001 From: tildearrow Date: Thu, 26 Oct 2023 17:38:39 -0500 Subject: [PATCH] GUI: always write olders len in UndoStep --- src/gui/editing.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/gui/editing.cpp b/src/gui/editing.cpp index aa7e6f5c7..45603e68c 100644 --- a/src/gui/editing.cpp +++ b/src/gui/editing.cpp @@ -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; }