Fix crash when saving config in Pcbnew.

Due do latest changes, a local copy of m_DisplayOptions was used instead of m_DisplayOptions itself.
But saving config use references to save params, so a non existing reference was used.
This commit is contained in:
jean-pierre charras 2019-11-08 09:42:33 +01:00
parent d788a5d99e
commit 0a018f514b
1 changed files with 2 additions and 2 deletions

View File

@ -69,7 +69,7 @@ void PCB_EDIT_FRAME::InstallPreferences( PAGED_DIALOG* aParent,
#if defined(KICAD_SCRIPTING) && defined(KICAD_SCRIPTING_ACTION_MENU)
book->AddSubPage( new PANEL_PCBNEW_ACTION_PLUGINS( this, aParent ), _( "Action Plugins" ) );
#endif
aHotkeysPanel->AddHotKeys( GetToolManager() );
}
@ -150,7 +150,7 @@ PARAM_CFG_ARRAY& PCB_EDIT_FRAME::GetProjectFileParameters()
PARAM_CFG_ARRAY& PCB_EDIT_FRAME::GetConfigurationSettings()
{
auto displ_opts = m_DisplayOptions;
PCB_DISPLAY_OPTIONS& displ_opts = m_DisplayOptions;
if( m_configParams.empty() )
{