From 242a9e572981a7654c91fabb22ba59f0ce8045f1 Mon Sep 17 00:00:00 2001 From: tildearrow Date: Sat, 23 Dec 2023 18:25:43 -0500 Subject: [PATCH] prepare to fix paate overflow undo corruption --- src/gui/gui.h | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/gui/gui.h b/src/gui/gui.h index 1cfbfc011..39fac0132 100644 --- a/src/gui/gui.h +++ b/src/gui/gui.h @@ -885,6 +885,14 @@ struct SelectionPoint { xCoarse(0), xFine(0), y(0) {} }; +struct UndoRegion { + struct UndoRegionPoint { + int ord, x, y; + UndoRegionPoint(): + ord(0), x(0), y(0) {} + } begin, end; +}; + enum ActionType { GUI_UNDO_CHANGE_ORDER, GUI_UNDO_PATTERN_EDIT,