Commit 7125da8a authored by Dick Hollenbeck's avatar Dick Hollenbeck

Set FPID on GITHUB_PLUGIN::FootprintLoad()

parent ecca7434
...@@ -52,6 +52,7 @@ ...@@ -52,6 +52,7 @@
#include <pcb_parser.h> #include <pcb_parser.h>
#include <class_board.h> #include <class_board.h>
#include <github_plugin.h> #include <github_plugin.h>
#include <class_module.h>
using namespace std; using namespace std;
...@@ -138,6 +139,11 @@ MODULE* GITHUB_PLUGIN::FootprintLoad( const wxString& aLibraryPath, ...@@ -138,6 +139,11 @@ MODULE* GITHUB_PLUGIN::FootprintLoad( const wxString& aLibraryPath,
MODULE* ret = (MODULE*) parser.Parse(); MODULE* ret = (MODULE*) parser.Parse();
// Dude, the footprint name comes from the file name in
// a github library. Zero out the library name, we don't know it here.
// Caller always has to set the library nickname if it knows it.
ret->SetFPID( fp_name );
return ret; return ret;
} }
} }
......
...@@ -200,7 +200,7 @@ IO_MGR::PCB_FILE_T IO_MGR::GuessPluginTypeFromLibPath( const wxString& aLibPath ...@@ -200,7 +200,7 @@ IO_MGR::PCB_FILE_T IO_MGR::GuessPluginTypeFromLibPath( const wxString& aLibPath
ret = EAGLE; ret = EAGLE;
} }
// Test this one anyways, even thought its the default guess, to avoid // Test this one anyways, even though it's the default guess, to avoid
// the wxURI instantiation below. // the wxURI instantiation below.
// We default ret to KICAD above, because somebody might have // We default ret to KICAD above, because somebody might have
// mistakenly put a pretty library into a directory other than // mistakenly put a pretty library into a directory other than
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment