Fix bug with adding items to group in modedit.
This commit is contained in:
parent
2f49db49bf
commit
6752fdd58b
|
@ -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
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue