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:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user