Handle undo when changing new item before placing.

Fixes https://gitlab.com/kicad/code/kicad/-/issues/21391

(cherry picked from commit a191d4e6e5)
This commit is contained in:
Jeff Young
2025-07-28 20:33:32 +01:00
parent 9d2b6ce033
commit 2a246801eb
4 changed files with 62 additions and 12 deletions
+2
View File
@@ -141,6 +141,8 @@ public:
UNDO_REDO aModFlag = UNDO_REDO::UNSPECIFIED,
BASE_SCREEN *aScreen = nullptr );
void Unstage( EDA_ITEM* aItem, BASE_SCREEN* aScreen );
/// Execute the changes.
virtual void Push( const wxString& aMessage = wxT( "A commit" ), int aFlags = 0 ) = 0;