Set FPID on GITHUB_PLUGIN::FootprintLoad()

This commit is contained in:
Dick Hollenbeck
2013-09-23 10:57:15 -05:00
parent ecca7434e1
commit 7125da8a45
2 changed files with 7 additions and 1 deletions
+6
View File
@@ -52,6 +52,7 @@
#include <pcb_parser.h>
#include <class_board.h>
#include <github_plugin.h>
#include <class_module.h>
using namespace std;
@@ -138,6 +139,11 @@ MODULE* GITHUB_PLUGIN::FootprintLoad( const wxString& aLibraryPath,
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;
}
}