Comparen canonicalKey, not raw key.

Fixes https://gitlab.com/kicad/code/kicad/issues/7979
This commit is contained in:
Jeff Young 2021-07-08 15:52:09 +01:00
parent a4263ebce5
commit f59ee53540
1 changed files with 5 additions and 1 deletions

View File

@ -157,8 +157,12 @@ std::map<wxString, wxString> ALTIUM_PARSER::ReadProperties()
else
value = wxString( valueS.c_str(), wxConvISO8859_1 );
if( key == wxT( "Designator" ) || key == wxT( "Name" ) || key == wxT( "Text" ) )
if( canonicalKey == wxT( "DESIGNATOR" )
|| canonicalKey == wxT( "NAME" )
|| canonicalKey == wxT( "TEXT" ) )
{
value = AltiumPropertyToKiCadString( value.Trim() );
}
kv.insert( { canonicalKey, value.Trim() } );
}