Fix typo in OnRenameField() that can cause OOB access.

Fixes https://gitlab.com/kicad/code/kicad/-/issues/16625
This commit is contained in:
Jeff Young 2024-01-23 13:49:23 +00:00
parent 179ab1011f
commit 9935a022cd
1 changed files with 2 additions and 2 deletions

View File

@ -757,8 +757,8 @@ void DIALOG_SYMBOL_FIELDS_TABLE::OnRenameField( wxCommandEvent& event )
}
m_dataModel->RenameColumn( col, newFieldName );
m_fieldsCtrl->SetTextValue( newFieldName, col, DISPLAY_NAME_COLUMN );
m_fieldsCtrl->SetTextValue( newFieldName, col, FIELD_NAME_COLUMN );
m_fieldsCtrl->SetTextValue( newFieldName, row, DISPLAY_NAME_COLUMN );
m_fieldsCtrl->SetTextValue( newFieldName, row, FIELD_NAME_COLUMN );
syncBomPresetSelection();
}