eeschema: EAGLE plugin does not reference footprint with library suffix

Fixes https://gitlab.com/kicad/code/kicad/issues/10261
This commit is contained in:
Steffen Mauch 2022-01-05 10:58:06 +01:00 committed by Wayne Stambaugh
parent 30549a5e6a
commit 502e34349e
1 changed files with 3 additions and 1 deletions

View File

@ -1325,7 +1325,9 @@ void SCH_EAGLE_PLUGIN::loadInstance( wxXmlNode* aInstanceNode )
symbol->SetLibId( libId );
symbol->SetUnit( unit );
symbol->SetPosition( VECTOR2I( einstance.x.ToSchUnits(), -einstance.y.ToSchUnits() ) );
symbol->GetField( FOOTPRINT_FIELD )->SetText( package );
// assume that footprint library is identical to project name
wxString packageString = m_schematic->Prj().GetProjectName() + wxT( ":" ) + package;
symbol->GetField( FOOTPRINT_FIELD )->SetText( packageString );
if( einstance.rot )
{