SCH_FIELD::GetCanonicalName() : the name must be the not translated name,

previously, it returned the translated string, by definition not the
canonical name
This commit is contained in:
jean-pierre charras 2023-06-23 17:26:17 +02:00
parent aa6d9ad69a
commit db8201717d
1 changed files with 1 additions and 1 deletions

View File

@ -870,7 +870,7 @@ wxString SCH_FIELD::GetCanonicalName() const
if( m_parent && m_parent->Type() == SCH_SYMBOL_T )
{
if( m_id < MANDATORY_FIELDS )
return TEMPLATE_FIELDNAME::GetDefaultFieldName( m_id, true );
return TEMPLATE_FIELDNAME::GetDefaultFieldName( m_id, false );
else
return m_name;
}