kicad-cli: The --precision parameter was not recognized, if unit was inch, the export crashed

(Cherry-picked from 63d828d5ff)
This commit is contained in:
Frank Muenstermann 2024-06-02 13:53:13 +02:00 committed by Ian McInerney
parent 73b2180c06
commit e0a27b430a
1 changed files with 1 additions and 1 deletions

View File

@ -1261,7 +1261,7 @@ int PCBNEW_JOBS_HANDLER::JobExportIpc2581( JOB* aJob )
STRING_UTF8_MAP props;
props["units"] =
job->m_units == JOB_EXPORT_PCB_IPC2581::IPC2581_UNITS::MILLIMETERS ? "mm" : "inch";
props["sigfig"] = wxString::Format( "%d", job->m_units );
props["sigfig"] = wxString::Format( "%d", job->m_precision );
props["version"] = job->m_version == JOB_EXPORT_PCB_IPC2581::IPC2581_VERSION::C ? "C" : "B";
props["OEMRef"] = job->m_colInternalId;
props["mpn"] = job->m_colMfgPn;