From 246e1fcd9ce0502c10b73726065550d523a38088 Mon Sep 17 00:00:00 2001 From: Russell Oliver Date: Sun, 9 Jul 2017 12:38:13 +1000 Subject: [PATCH] Eeschema Eagle Import: Save imported library to disk. --- eeschema/sch_eagle_plugin.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/eeschema/sch_eagle_plugin.cpp b/eeschema/sch_eagle_plugin.cpp index 83f569f1de..f553498388 100644 --- a/eeschema/sch_eagle_plugin.cpp +++ b/eeschema/sch_eagle_plugin.cpp @@ -285,7 +285,7 @@ SCH_SHEET* SCH_EAGLE_PLUGIN::Load( const wxString& aFileName, KIWAY* aKiway, loadDrawing( children["drawing"] ); // There are two ways to add a new library, the official one that requires creating a file: - // m_partlib->Save( false ); + m_partlib->Save( false ); // aKiway->Prj().SchLibs()->AddLibrary( m_partlib->GetFullFileName() ); // or undocumented one: aKiway->Prj().SchLibs()->push_back( m_partlib ); @@ -714,7 +714,7 @@ void SCH_EAGLE_PLUGIN::loadInstance( wxXmlNode* aInstanceNode ) // std::cout << "Instance> part: " << einstance.part << " Gate: " << einstance.gate << " " << symbolname << '\n'; std::unique_ptr component( new SCH_COMPONENT() ); - LIB_ID libId( wxEmptyString, symbolname ); + LIB_ID libId( m_partlib->GetLogicalName(), symbolname ); component->SetLibId( libId ); component->SetUnit( unit );