Browse Source

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
newinvert
Jeff Young 2 years ago
parent
commit
08a00633b1
  1. 5
      pcbnew/board_commit.cpp

5
pcbnew/board_commit.cpp

@ -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…
Cancel
Save