Browse Source

Prevent wxWidgets assert (KICAD-6VM).

pull/18/head
Jeff Young 3 months ago
parent
commit
7b0aceb99e
  1. 1
      3d-viewer/dialogs/appearance_controls_3D.cpp
  2. 2
      pcbnew/widgets/appearance_controls.cpp

1
3d-viewer/dialogs/appearance_controls_3D.cpp

@ -864,6 +864,7 @@ void APPEARANCE_CONTROLS_3D::onLayerPresetChanged( wxCommandEvent& aEvent )
if( cfg->m_CurrentPreset == name )
cfg->m_CurrentPreset = wxEmptyString;
if( m_presetMRU.Index( name ) >= 0 )
m_presetMRU.Remove( name );
}

2
pcbnew/widgets/appearance_controls.cpp

@ -2802,6 +2802,8 @@ void APPEARANCE_CONTROLS::onLayerPresetChanged( wxCommandEvent& aEvent )
preset->flipBoard = m_cbFlipBoard->GetValue();
index = m_cbLayerPresets->FindString( name );
if( index != wxNOT_FOUND )
m_presetMRU.Remove( name );
}

Loading…
Cancel
Save