Don't add non-groupable items to the group
Things like markers and netinfo should never get added to the group, even if we are inside the group while adding the items Fixes https://gitlab.com/kicad/code/kicad/issues/13026
This commit is contained in:
@@ -246,8 +246,11 @@ void BOARD_COMMIT::Push( const wxString& aMessage, int aCommitFlags )
|
||||
{
|
||||
case CHT_ADD:
|
||||
{
|
||||
if( selTool && selTool->GetEnteredGroup() && !boardItem->GetParentGroup() )
|
||||
if( selTool && selTool->GetEnteredGroup() && !boardItem->GetParentGroup()
|
||||
&& PCB_GROUP::IsGroupableType( boardItem->Type() ) )
|
||||
{
|
||||
selTool->GetEnteredGroup()->AddItem( boardItem );
|
||||
}
|
||||
|
||||
if( m_isFootprintEditor )
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user