Prevent null dereference

This commit is contained in:
Seth Hillbrand 2022-06-03 10:05:19 -07:00
parent 285d1f4fae
commit 407514919d
1 changed files with 3 additions and 1 deletions

View File

@ -234,7 +234,9 @@ void SCH_EDIT_FRAME::ToggleSchematicHierarchy()
SetAuiPaneSize( m_auimgr, hierarchy, cfg->m_AuiPanels.left_panel_width, -1 );
else
{
cfg->m_AuiPanels.left_panel_width = m_hierarchy->GetSize().x;
if( cfg )
cfg->m_AuiPanels.left_panel_width = m_hierarchy->GetSize().x;
m_auimgr.Update();
}
}