eeschema: EAGLE plugin does not reference footprint with library suffix

Fixes https://gitlab.com/kicad/code/kicad/issues/10261

(cherry picked from commit 502e34349e)
This commit is contained in:
Steffen Mauch 2022-01-05 10:58:06 +01:00 committed by Wayne Stambaugh
parent 7f1648934f
commit d60e77176f
1 changed files with 4 additions and 1 deletions

View File

@ -1325,7 +1325,10 @@ void SCH_EAGLE_PLUGIN::loadInstance( wxXmlNode* aInstanceNode )
symbol->SetLibId( libId );
symbol->SetUnit( unit );
symbol->SetPosition( wxPoint( 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 )
{