From 3ced3afa681b13fe4d62d9f6acb2927b2352ac3e Mon Sep 17 00:00:00 2001 From: Steffen Mauch Date: Wed, 5 Jan 2022 11:14:14 +0100 Subject: [PATCH] eeschema: automatic generated symbol library from EAGLE plugin does not include footprint reference Fixes https://gitlab.com/kicad/code/kicad/issues/10262 --- eeschema/sch_plugins/eagle/sch_eagle_plugin.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/eeschema/sch_plugins/eagle/sch_eagle_plugin.cpp b/eeschema/sch_plugins/eagle/sch_eagle_plugin.cpp index dbcd4f4d78..05ee1655dc 100644 --- a/eeschema/sch_plugins/eagle/sch_eagle_plugin.cpp +++ b/eeschema/sch_plugins/eagle/sch_eagle_plugin.cpp @@ -1581,6 +1581,10 @@ EAGLE_LIBRARY* SCH_EAGLE_PLUGIN::loadLibrary( wxXmlNode* aLibraryNode, if( gates_count == 1 && ispower ) libSymbol->SetPower(); + // assume that footprint library is identical to project name + wxString packageString = m_schematic->Prj().GetProjectName() + wxT( ":" ) + aEagleLibrary->package[symbolName]; + libSymbol->GetFootprintField().SetText( packageString ); + wxString name = libSymbol->GetName(); libSymbol->SetName( name ); m_pi->SaveSymbol( getLibFileName().GetFullPath(), new LIB_SYMBOL( *libSymbol.get() ),