Fix typo in OnRenameField() that can cause OOB access.
Fixes https://gitlab.com/kicad/code/kicad/-/issues/16625
This commit is contained in:
parent
179ab1011f
commit
9935a022cd
|
@ -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();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue