Browse Source

Eagle import: fix footprint LIB_IDs in the imported board

pull/5/merge
Maciej Suminski 8 years ago
parent
commit
419a16ae58
  1. 13
      pcbnew/files.cpp

13
pcbnew/files.cpp

@ -897,6 +897,19 @@ bool PCB_EDIT_FRAME::importFile( const wxString& aFileName, int aFileType )
}
// Update module LIB_IDs to point to the just imported Eagle library
for( MODULE* module : GetBoard()->Modules() )
{
LIB_ID libId = module->GetFPID();
if( libId.GetLibItemName().empty() )
continue;
libId.SetLibNickname( newfilename.GetName() );
module->SetFPID( libId );
}
// Store net names for all pads, to create net remap information
std::unordered_map<D_PAD*, wxString> netMap;

Loading…
Cancel
Save