eeschema: EAGLE plugin does not reference footprint with library suffix
Fixes https://gitlab.com/kicad/code/kicad/issues/10261
This commit is contained in:
parent
30549a5e6a
commit
502e34349e
|
@ -1325,7 +1325,9 @@ void SCH_EAGLE_PLUGIN::loadInstance( wxXmlNode* aInstanceNode )
|
||||||
symbol->SetLibId( libId );
|
symbol->SetLibId( libId );
|
||||||
symbol->SetUnit( unit );
|
symbol->SetUnit( unit );
|
||||||
symbol->SetPosition( VECTOR2I( einstance.x.ToSchUnits(), -einstance.y.ToSchUnits() ) );
|
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 )
|
if( einstance.rot )
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue