Defensive coding.
Fixes https://gitlab.com/kicad/code/kicad/issues/8790
This commit is contained in:
parent
d9cf939ba1
commit
98d0ce00ee
|
@ -168,7 +168,10 @@ FOOTPRINT::FOOTPRINT( const FOOTPRINT& aFootprint ) :
|
|||
newGroup->GetItems().clear();
|
||||
|
||||
for( BOARD_ITEM* member : group->GetItems() )
|
||||
newGroup->AddItem( ptrMap[ member ] );
|
||||
{
|
||||
if( ptrMap.count( member ) )
|
||||
newGroup->AddItem( ptrMap[ member ] );
|
||||
}
|
||||
}
|
||||
|
||||
// Copy auxiliary data: 3D_Drawings info
|
||||
|
|
Loading…
Reference in New Issue