Don't allow pads in groups in the board editor.

Bad stuff happens, including crashes.
This commit is contained in:
Jeff Young 2021-08-04 12:55:10 +01:00
parent 65f6e72b4c
commit 46bdce2747
2 changed files with 2 additions and 0 deletions

View File

@ -1002,6 +1002,7 @@ void PCB_PARSER::resolveGroups( BOARD_ITEM* aParent )
case PCB_FP_TEXT_T:
case PCB_FP_SHAPE_T:
case PCB_FP_ZONE_T:
case PCB_PAD_T:
if( item->GetParent() == group->GetParent() )
group->AddItem( item );

View File

@ -238,6 +238,7 @@ int GROUP_TOOL::Group( const TOOL_EVENT& aEvent )
case PCB_FP_TEXT_T:
case PCB_FP_SHAPE_T:
case PCB_FP_ZONE_T:
case PCB_PAD_T:
aCollector.Remove( item );
break;