Make sure child items get edit flags cleared in commit.

In the footprint editor, in particular, we often just
add the parent footprint to the commit rather than the
actual modified item(s).

Fixes https://gitlab.com/kicad/code/kicad/-/issues/16389
This commit is contained in:
Jeff Young 2023-12-17 21:46:10 +00:00
parent eb3fd10af8
commit 08a00633b1
1 changed files with 5 additions and 0 deletions

View File

@ -451,6 +451,11 @@ void BOARD_COMMIT::Push( const wxString& aMessage, int aCommitFlags )
}
boardItem->ClearEditFlags();
boardItem->RunOnDescendants(
[&]( BOARD_ITEM* item )
{
item->ClearEditFlags();
} );
}
if( bulkAddedItems.size() > 0 )