Handle separate parsing rules for ID_SCH and ID_PCB.

This removes the existing constructors so that all parsing must
be explicit and callers are made aware that they need to think
about illegal characters, malformed ids, etc.

Fixes: lp:1783474
* https://bugs.launchpad.net/kicad/+bug/1783474

Fixes: lp:1786819
* https://bugs.launchpad.net/kicad/+bug/1786819
This commit is contained in:
Jeff Young
2018-07-26 15:38:30 +01:00
parent b167c41d1b
commit 7e2e39ce30
29 changed files with 143 additions and 151 deletions
+1 -1
View File
@@ -232,7 +232,7 @@ MODULE* GITHUB_PLUGIN::FootprintLoad( const wxString& aLibraryPath,
// any name found in the pretty file; any name in the pretty file
// must be ignored here. Also, the library nickname is unknown in
// this context so clear it just in case.
ret->SetFPID( aFootprintName );
ret->SetFPID( LIB_ID( wxEmptyString, aFootprintName ) );
return ret;
}