eeschema: automatic generated symbol library from EAGLE plugin does not include footprint reference
Fixes https://gitlab.com/kicad/code/kicad/issues/10262
This commit is contained in:
parent
e4961cb956
commit
3ced3afa68
|
@ -1581,6 +1581,10 @@ EAGLE_LIBRARY* SCH_EAGLE_PLUGIN::loadLibrary( wxXmlNode* aLibraryNode,
|
||||||
if( gates_count == 1 && ispower )
|
if( gates_count == 1 && ispower )
|
||||||
libSymbol->SetPower();
|
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();
|
wxString name = libSymbol->GetName();
|
||||||
libSymbol->SetName( name );
|
libSymbol->SetName( name );
|
||||||
m_pi->SaveSymbol( getLibFileName().GetFullPath(), new LIB_SYMBOL( *libSymbol.get() ),
|
m_pi->SaveSymbol( getLibFileName().GetFullPath(), new LIB_SYMBOL( *libSymbol.get() ),
|
||||||
|
|
Loading…
Reference in New Issue