diff --git a/common/eagle_parser.cpp b/common/eagle_parser.cpp index bd1a1ca589..60aa526120 100644 --- a/common/eagle_parser.cpp +++ b/common/eagle_parser.cpp @@ -518,12 +518,12 @@ EATTR::EATTR( wxXmlNode* aTree ) // (off | value | name | both) if( stemp == "off" ) display = EATTR::Off; - else if( stemp == "value" ) - display = EATTR::VALUE; else if( stemp == "name" ) display = EATTR::NAME; else if( stemp == "both" ) display = EATTR::BOTH; + else // "value" is the default + display = EATTR::VALUE; stemp = parseOptionalAttribute( aTree, "align" ); diff --git a/eeschema/sch_eagle_plugin.cpp b/eeschema/sch_eagle_plugin.cpp index ebf00728b1..b2b09ce48b 100644 --- a/eeschema/sch_eagle_plugin.cpp +++ b/eeschema/sch_eagle_plugin.cpp @@ -1152,9 +1152,9 @@ void SCH_EAGLE_PLUGIN::loadInstance( wxXmlNode* aInstanceNode ) SCH_FIELD* field; - if( attr.name == "name" || attr.name == "value" ) + if( attr.name.Lower() == "name" || attr.name.Lower() == "value" ) { - if( attr.name == "name" ) + if( attr.name.Lower() == "name" ) { field = component->GetField( REFERENCE ); nameAttributeFound = true; @@ -1175,7 +1175,7 @@ void SCH_EAGLE_PLUGIN::loadInstance( wxXmlNode* aInstanceNode ) bool spin = attr.rot ? attr.rot->spin : false; - if( attr.display == EATTR::Off ) + if( attr.display == EATTR::Off || attr.display == EATTR::NAME ) field->SetVisible( false ); int rotation = einstance.rot ? einstance.rot->degrees : 0;