fix issue in DIALOG_CHANGE_SYMBOLS, in non English locale.

Mandatory field names where compared in list, using translated and not translated names.
Fixes #9596
https://gitlab.com/kicad/code/kicad/issues/9596
This commit is contained in:
jean-pierre charras 2021-11-11 10:56:09 +01:00
parent 4567baa276
commit 686b32dbd3
1 changed files with 3 additions and 1 deletions

View File

@ -601,7 +601,9 @@ bool DIALOG_CHANGE_SYMBOLS::processSymbol( SCH_SYMBOL* aSymbol, const SCH_SHEET_
SCH_FIELD& field = aSymbol->GetFields()[i];
LIB_FIELD* libField = nullptr;
if( !alg::contains( m_updateFields, field.GetName() ) )
// Mandatory fields always exist in m_updateFields, but these names can be translated.
// so do not try to search them in list: they can be no found by name).
if( i >= MANDATORY_FIELDS && !alg::contains( m_updateFields, field.GetName() ) )
continue;
if( i < MANDATORY_FIELDS )