Implement Group Properties in Footprint Editor.

Also fixes a pair of typos that were keeping delete of a group in the
Footprint Editor from working.

Fixes https://gitlab.com/kicad/code/kicad/issues/6579

Fixes https://gitlab.com/kicad/code/kicad/issues/6578
This commit is contained in:
Jeff Young 2020-12-01 23:42:53 +00:00
parent df262eaa06
commit f70153b849
2 changed files with 8 additions and 3 deletions

View File

@ -211,8 +211,13 @@ void FOOTPRINT_EDIT_FRAME::OnEditItemRequest( BOARD_ITEM* aItem )
}
break;
case PCB_GROUP_T:
m_toolManager->RunAction( PCB_ACTIONS::groupProperties, true, aItem );
break;
default:
wxASSERT( 0 );
wxFAIL_MSG( "FOOTPRINT_EDIT_FRAME::OnEditItemRequest: unsupported item type "
+ aItem->GetClass() );
break;
}
}

View File

@ -1397,8 +1397,8 @@ int EDIT_TOOL::Remove( const TOOL_EVENT& aEvent )
if( bItem->GetParent() && bItem->GetParent()->Type() == PCB_FOOTPRINT_T )
{
m_commit->Modify( bItem->GetParent() );
getView()->Remove( group );
bItem->GetParent()->Remove( group );
getView()->Remove( bItem );
bItem->GetParent()->Remove( bItem );
}
else
{