Fix bug with adding items to group in modedit.

This commit is contained in:
Jeff Young 2020-10-08 11:10:53 +01:00
parent 2f49db49bf
commit 6752fdd58b
1 changed files with 3 additions and 0 deletions

View File

@ -355,6 +355,9 @@ int GROUP_TOOL::Group( const TOOL_EVENT& aEvent )
group = new PCB_GROUP( module );
module->Add( group );
for( EDA_ITEM* item : selection )
group->AddItem( static_cast<BOARD_ITEM*>( item ) );
}
else
{