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

This commit is contained in:
Frank Muenstermann 2024-06-02 13:53:13 +02:00 committed by Ian McInerney
parent aee7680a6c
commit 63d828d5ff
1 changed files with 1 additions and 1 deletions

View File

@ -1463,7 +1463,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;