Fix parentage of groups
In the footprint editor, we must parent the group to the module not the board. Fixes https://gitlab.com/kicad/code/kicad/issues/6181
This commit is contained in:
parent
31e626f279
commit
dc542be91d
|
@ -990,7 +990,12 @@ int DRAWING_TOOL::PlaceImportedGraphics( const TOOL_EVENT& aEvent )
|
||||||
PCB_GROUP* grp = nullptr;
|
PCB_GROUP* grp = nullptr;
|
||||||
|
|
||||||
if( dlg.ShouldGroupItems() )
|
if( dlg.ShouldGroupItems() )
|
||||||
grp = new PCB_GROUP( m_frame->GetBoard() );
|
{
|
||||||
|
if( m_editModules )
|
||||||
|
grp = new PCB_GROUP( m_frame->GetBoard()->GetFirstModule() );
|
||||||
|
else
|
||||||
|
grp = new PCB_GROUP( m_frame->GetBoard() );
|
||||||
|
}
|
||||||
|
|
||||||
// Build the undo list & add items to the current view
|
// Build the undo list & add items to the current view
|
||||||
for( auto& ptr : list)
|
for( auto& ptr : list)
|
||||||
|
|
Loading…
Reference in New Issue