Don't allow pads in groups in the board editor.
Bad stuff happens, including crashes.
This commit is contained in:
parent
65f6e72b4c
commit
46bdce2747
|
@ -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 );
|
||||
|
||||
|
|
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in New Issue