Use correct value field text when importing Eagle schematic symbols.

Fixes https://gitlab.com/kicad/code/kicad/-/issues/17130
This commit is contained in:
Wayne Stambaugh 2024-03-11 15:19:32 -04:00
parent ed61c5593f
commit 865225fcca
1 changed files with 2 additions and 1 deletions

View File

@ -1839,9 +1839,10 @@ void SCH_IO_EAGLE::loadInstance( wxXmlNode* aInstanceNode )
SCH_FIELD* valueField = symbol->GetField( VALUE_FIELD );
bool userValue = m_userValue.at( libIdSymbolName );
valueField->SetVisible( part->GetFieldById( VALUE_FIELD )->IsVisible() );
if( userValue && epart->value )
if( !userValue && epart->value )
{
valueField->SetText( *epart->value );
}