GUI: fix glitch when removing orders

This commit is contained in:
tildearrow 2022-10-02 02:14:12 -05:00
parent 8de9e98a45
commit cef1fa9d99

View file

@ -1439,6 +1439,12 @@ void FurnaceGUI::doAction(int what) {
case GUI_ACTION_ORDERS_REMOVE: case GUI_ACTION_ORDERS_REMOVE:
prepareUndo(GUI_UNDO_CHANGE_ORDER); prepareUndo(GUI_UNDO_CHANGE_ORDER);
e->deleteOrder(); e->deleteOrder();
if (curOrder>=e->curSubSong->ordersLen) {
curOrder=e->curSubSong->ordersLen-1;
oldOrder=curOrder;
oldOrder1=curOrder;
e->setOrder(curOrder);
}
makeUndo(GUI_UNDO_CHANGE_ORDER); makeUndo(GUI_UNDO_CHANGE_ORDER);
break; break;
case GUI_ACTION_ORDERS_MOVE_UP: case GUI_ACTION_ORDERS_MOVE_UP: