Symbol Fields Table: fix crash

Fixes: https://gitlab.com/kicad/code/kicad/-/issues/14532
This commit is contained in:
Mike Williams 2023-04-30 10:53:46 -04:00
parent a3b741a126
commit c1bebf6490
1 changed files with 1 additions and 1 deletions

View File

@ -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 )
{