mirror of
https://gitlab.com/kicad/code/kicad.git
synced 2025-09-14 02:03:12 +02:00
Prevent wxWidgets assert (KICAD-6VM).
This commit is contained in:
parent
b077b32c43
commit
7b0aceb99e
@ -864,7 +864,8 @@ void APPEARANCE_CONTROLS_3D::onLayerPresetChanged( wxCommandEvent& aEvent )
|
||||
if( cfg->m_CurrentPreset == name )
|
||||
cfg->m_CurrentPreset = wxEmptyString;
|
||||
|
||||
m_presetMRU.Remove( name );
|
||||
if( m_presetMRU.Index( name ) >= 0 )
|
||||
m_presetMRU.Remove( name );
|
||||
}
|
||||
|
||||
resetSelection();
|
||||
|
@ -2802,7 +2802,9 @@ void APPEARANCE_CONTROLS::onLayerPresetChanged( wxCommandEvent& aEvent )
|
||||
preset->flipBoard = m_cbFlipBoard->GetValue();
|
||||
|
||||
index = m_cbLayerPresets->FindString( name );
|
||||
m_presetMRU.Remove( name );
|
||||
|
||||
if( index != wxNOT_FOUND )
|
||||
m_presetMRU.Remove( name );
|
||||
}
|
||||
|
||||
m_currentPreset = preset;
|
||||
|
Loading…
x
Reference in New Issue
Block a user