Fix typo in resetting selection after rebuilding colour theme popup.

This commit is contained in:
Jeff Young 2020-08-04 14:45:09 +01:00
parent 59ba793096
commit 6075112ea0
1 changed files with 1 additions and 1 deletions

View File

@ -180,7 +180,7 @@ void PANEL_COLOR_SETTINGS::createThemeList( const wxString& aCurrent )
{ {
int pos = m_cbTheme->Append( settings->GetName(), static_cast<void*>( settings ) ); int pos = m_cbTheme->Append( settings->GetName(), static_cast<void*>( settings ) );
if( settings->GetFilename() == aCurrent ) if( settings->GetName() == aCurrent )
m_cbTheme->SetSelection( pos ); m_cbTheme->SetSelection( pos );
m_cbTheme->GetTextExtent( settings->GetName(), &width, &height ); m_cbTheme->GetTextExtent( settings->GetName(), &width, &height );