Fix compile issue on GTK (or possibly just with some versions of wxWidgets).
This commit is contained in:
parent
fbd68722b2
commit
f3a2495757
|
@ -911,9 +911,10 @@ void DIALOG_FIELDS_EDITOR_GLOBAL::AddField( const wxString& aName,
|
||||||
if( cfg->m_FieldEditorPanel.fields_group_by.count( key ) )
|
if( cfg->m_FieldEditorPanel.fields_group_by.count( key ) )
|
||||||
sort_by = cfg->m_FieldEditorPanel.fields_group_by.at( key );
|
sort_by = cfg->m_FieldEditorPanel.fields_group_by.at( key );
|
||||||
|
|
||||||
fieldsCtrlRow.emplace_back( wxVariant( aName ) );
|
// Don't change these to emplace_back: some versions of wxWidgets don't support it
|
||||||
fieldsCtrlRow.emplace_back( wxVariant( show ) );
|
fieldsCtrlRow.push_back( wxVariant( aName ) );
|
||||||
fieldsCtrlRow.emplace_back( wxVariant( sort_by ) );
|
fieldsCtrlRow.push_back( wxVariant( show ) );
|
||||||
|
fieldsCtrlRow.push_back( wxVariant( sort_by ) );
|
||||||
|
|
||||||
m_fieldsCtrl->AppendItem( fieldsCtrlRow );
|
m_fieldsCtrl->AppendItem( fieldsCtrlRow );
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue