Clear edit flags on footprint children in footprint editor.

Fixes https://gitlab.com/kicad/code/kicad/-/issues/15199
This commit is contained in:
Jeff Young 2023-07-14 22:16:00 +01:00
parent 24e9cf4fd8
commit c3222b0652
1 changed files with 10 additions and 1 deletions

View File

@ -555,7 +555,7 @@ void BOARD_COMMIT::Push( const wxString& aMessage, int aCommitFlags )
[&]( BOARD_ITEM* aChild )
{
view->Update( aChild );
});
} );
}
}
@ -574,6 +574,15 @@ void BOARD_COMMIT::Push( const wxString& aMessage, int aCommitFlags )
}
boardItem->ClearEditFlags();
if( m_isFootprintEditor && boardItem->Type() == PCB_FOOTPRINT_T )
{
static_cast<FOOTPRINT*>( boardItem )->RunOnChildren(
[&]( BOARD_ITEM* aChild )
{
aChild->ClearEditFlags();
} );
}
}
if( bulkAddedItems.size() > 0 )