Use correct value field text when importing Eagle schematic symbols.

Fixes https://gitlab.com/kicad/code/kicad/-/issues/17130

(cherry picked from commit 865225fcca)
This commit is contained in:
Wayne Stambaugh 2024-03-11 15:19:32 -04:00
parent ac8b3989be
commit c179f4d4f1
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 );
}