Remove group from view when ungrouping.
Fixes https://gitlab.com/kicad/code/kicad/-/issues/16197
This commit is contained in:
parent
cb12464865
commit
a5454cd7c2
|
@ -327,6 +327,8 @@ int GROUP_TOOL::Ungroup( const TOOL_EVENT& aEvent )
|
||||||
else
|
else
|
||||||
board->Remove( group );
|
board->Remove( group );
|
||||||
|
|
||||||
|
canvas()->GetView()->Remove( group );
|
||||||
|
|
||||||
undoList.PushItem( ITEM_PICKER( nullptr, group, UNDO_REDO::DELETED ) );
|
undoList.PushItem( ITEM_PICKER( nullptr, group, UNDO_REDO::DELETED ) );
|
||||||
m_frame->SaveCopyInUndoList( undoList, UNDO_REDO::UNGROUP );
|
m_frame->SaveCopyInUndoList( undoList, UNDO_REDO::UNGROUP );
|
||||||
group->SetSelected();
|
group->SetSelected();
|
||||||
|
|
Loading…
Reference in New Issue