pcbnew: EAGLE plugin is case sensitive to >VALUE / >NAME

Fixes https://gitlab.com/kicad/code/kicad/issues/10253
This commit is contained in:
Steffen Mauch 2022-01-04 16:08:09 +01:00 committed by Wayne Stambaugh
parent a5307c6f59
commit 82f147ecef
1 changed files with 2 additions and 2 deletions

View File

@ -1928,9 +1928,9 @@ void EAGLE_PLUGIN::packageText( FOOTPRINT* aFootprint, wxXmlNode* aTree ) const
FP_TEXT* txt; FP_TEXT* txt;
if( t.text == ">NAME" || t.text == ">name" ) if( t.text.MakeUpper() == ">NAME" )
txt = &aFootprint->Reference(); txt = &aFootprint->Reference();
else if( t.text == ">VALUE" || t.text == ">value" ) else if( t.text.MakeUpper() == ">VALUE" )
txt = &aFootprint->Value(); txt = &aFootprint->Value();
else else
{ {