Fix build error.

This commit is contained in:
Jeff Young
2025-10-07 13:23:14 +01:00
parent e95aab5df6
commit 76cff2e7aa
+2 -2
View File
@@ -37,13 +37,13 @@ const wxString LIB_FIELDS_EDITOR_GRID_DATA_MODEL::ITEM_NUMBER_VARIABLE = wxS( "$
void LIB_FIELDS_EDITOR_GRID_DATA_MODEL::AddColumn( const wxString& aFieldName, const wxString& aLabel,
bool aAddedByUser, bool aIsCheckbox )
bool aAddedByUser, bool aIsCheckbox )
{
// Don't add a field twice
if( GetFieldNameCol( aFieldName ) != -1 )
return;
m_cols.emplace_back( aFieldName, aLabel, aAddedByUser, false, false, aIsCheckbox );
m_cols.push_back( { aFieldName, aLabel, aAddedByUser, false, false, aIsCheckbox } );
for( LIB_SYMBOL* symbol : m_symbolsList )
updateDataStoreSymbolField( symbol, aFieldName );