Browse Source

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

Fixes https://gitlab.com/kicad/code/kicad/issues/10253
7.0
Steffen Mauch 4 years ago
committed by Wayne Stambaugh
parent
commit
82f147ecef
  1. 4
      pcbnew/plugins/eagle/eagle_plugin.cpp

4
pcbnew/plugins/eagle/eagle_plugin.cpp

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

Loading…
Cancel
Save