Fix bug in linux compile

wx 3.0 does not have an emplace_back method for wxVector
This commit is contained in:
Seth Hillbrand 2020-01-10 16:41:55 -08:00
parent d1a0102e84
commit 94f682c6bd
1 changed files with 3 additions and 3 deletions

View File

@ -888,9 +888,9 @@ void DIALOG_FIELDS_EDITOR_GLOBAL::AddField( const wxString& aName,
m_config->Read( "SymbolFieldEditor/Show/" + aName, &defaultShow ); m_config->Read( "SymbolFieldEditor/Show/" + aName, &defaultShow );
m_config->Read( "SymbolFieldEditor/GroupBy/" + aName, &defaultSortBy ); m_config->Read( "SymbolFieldEditor/GroupBy/" + aName, &defaultSortBy );
fieldsCtrlRow.emplace_back( wxVariant( aName ) ); fieldsCtrlRow.push_back( wxVariant( aName ) );
fieldsCtrlRow.emplace_back( wxVariant( defaultShow ) ); fieldsCtrlRow.push_back( wxVariant( defaultShow ) );
fieldsCtrlRow.emplace_back( wxVariant( defaultSortBy ) ); fieldsCtrlRow.push_back( wxVariant( defaultSortBy ) );
m_fieldsCtrl->AppendItem( fieldsCtrlRow ); m_fieldsCtrl->AppendItem( fieldsCtrlRow );
} }