We do undo on individual footprint children now.

Adding a commit record for the parent means we replace the
parent first on undo and then if a child was added we can't
find it to remove it.
This commit is contained in:
Jeff Young 2024-01-27 20:26:50 +00:00
parent 07cefa7883
commit eacebe63f1
1 changed files with 0 additions and 6 deletions

View File

@ -586,12 +586,6 @@ void BOARD_COMMIT::Push( const wxString& aMessage, int aCommitFlags )
EDA_ITEM* BOARD_COMMIT::parentObject( EDA_ITEM* aItem ) const
{
if( BOARD_ITEM* boardItem = dynamic_cast<BOARD_ITEM*>( aItem ) )
{
if( FOOTPRINT* parentFP = boardItem->GetParentFootprint() )
return parentFP;
}
return aItem;
}