diff --git a/eeschema/dialogs/dialog_symbol_fields_table.cpp b/eeschema/dialogs/dialog_symbol_fields_table.cpp index 731621ca84..15387daed7 100644 --- a/eeschema/dialogs/dialog_symbol_fields_table.cpp +++ b/eeschema/dialogs/dialog_symbol_fields_table.cpp @@ -1498,7 +1498,7 @@ void DIALOG_SYMBOL_FIELDS_TABLE::doApplyBomPreset( const BOM_PRESET& aPreset ) const wxString& fieldName( m_dataModel->GetColFieldName( i ) ); bool found = false; - for( int j = 0; i < m_fieldsCtrl->GetItemCount(); j++ ) + for( int j = 0; j < m_fieldsCtrl->GetItemCount(); j++ ) { if( m_fieldsCtrl->GetTextValue( j, FIELD_NAME_COLUMN ) == fieldName ) {