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:
parent
eb3fd10af8
commit
08a00633b1
|
@ -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 )
|
||||
|
|
Loading…
Reference in New Issue