PCB_GROUP_Ts need to be added and removed from view.

The SELECTION_TOOL's m_enteredGroup also needs to be updated when
said group is deleted via undo or redo.

Fixes https://gitlab.com/kicad/code/kicad/issues/6493
This commit is contained in:
Jeff Young
2020-11-27 23:34:58 +00:00
parent 190197794d
commit b1adb93c16
3 changed files with 31 additions and 16 deletions
+3 -1
View File
@@ -164,7 +164,7 @@ void BOARD_COMMIT::Push( const wxString& aMessage, bool aCreateUndoEntry, bool a
board->Add( boardItem ); // handles connectivity
}
if( boardItem->Type() != PCB_NETINFO_T && boardItem->Type() != PCB_GROUP_T )
if( boardItem->Type() != PCB_NETINFO_T )
view->Add( boardItem );
break;
@@ -246,6 +246,8 @@ void BOARD_COMMIT::Push( const wxString& aMessage, bool aCreateUndoEntry, bool a
break;
case PCB_GROUP_T:
view->Remove( boardItem );
if( !( changeFlags & CHT_DONE ) )
{
if( m_isFootprintEditor )