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

@ -150,7 +150,7 @@ PARAM_CFG_ARRAY& PCB_EDIT_FRAME::GetProjectFileParameters()
PARAM_CFG_ARRAY& PCB_EDIT_FRAME::GetConfigurationSettings() PARAM_CFG_ARRAY& PCB_EDIT_FRAME::GetConfigurationSettings()
{ {
auto displ_opts = m_DisplayOptions; PCB_DISPLAY_OPTIONS& displ_opts = m_DisplayOptions;
if( m_configParams.empty() ) if( m_configParams.empty() )
{ {