kicad-cli: The --precision parameter was not recognized, if unit was inch, the export crashed
(Cherry-picked from 63d828d5ff
)
This commit is contained in:
parent
73b2180c06
commit
e0a27b430a
|
@ -1261,7 +1261,7 @@ int PCBNEW_JOBS_HANDLER::JobExportIpc2581( JOB* aJob )
|
||||||
STRING_UTF8_MAP props;
|
STRING_UTF8_MAP props;
|
||||||
props["units"] =
|
props["units"] =
|
||||||
job->m_units == JOB_EXPORT_PCB_IPC2581::IPC2581_UNITS::MILLIMETERS ? "mm" : "inch";
|
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["version"] = job->m_version == JOB_EXPORT_PCB_IPC2581::IPC2581_VERSION::C ? "C" : "B";
|
||||||
props["OEMRef"] = job->m_colInternalId;
|
props["OEMRef"] = job->m_colInternalId;
|
||||||
props["mpn"] = job->m_colMfgPn;
|
props["mpn"] = job->m_colMfgPn;
|
||||||
|
|
Loading…
Reference in New Issue