Handle undo when changing new item before placing.

Fixes https://gitlab.com/kicad/code/kicad/-/issues/21391
This commit is contained in:
Jeff Young
2025-07-27 15:56:16 +01:00
parent 046c36d060
commit a191d4e6e5
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;