Fix segfault after using group properties dialog

Fixes https://gitlab.com/kicad/code/kicad/issues/8302
This commit is contained in:
david-beinder 2021-04-25 22:15:19 +02:00
parent ddeac126ad
commit cbe8b1644a
1 changed files with 3 additions and 0 deletions

View File

@ -58,6 +58,9 @@ DIALOG_GROUP_PROPERTIES::DIALOG_GROUP_PROPERTIES( PCB_BASE_EDIT_FRAME* aParent,
DIALOG_GROUP_PROPERTIES::~DIALOG_GROUP_PROPERTIES()
{
if( m_brdEditor->IsBeingDeleted() )
return;
m_brdEditor->FocusOnItem( nullptr );
m_brdEditor->GetCanvas()->Refresh();
}