From e0a27b430a31305bcfc32f30476fbd31db5d29ac Mon Sep 17 00:00:00 2001 From: Frank Muenstermann Date: Sun, 2 Jun 2024 13:53:13 +0200 Subject: [PATCH] kicad-cli: The --precision parameter was not recognized, if unit was inch, the export crashed (Cherry-picked from 63d828d5ff776312cd08264b56454b1ee743355a) --- pcbnew/pcbnew_jobs_handler.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pcbnew/pcbnew_jobs_handler.cpp b/pcbnew/pcbnew_jobs_handler.cpp index c66e20ba49..e9b4118d9c 100644 --- a/pcbnew/pcbnew_jobs_handler.cpp +++ b/pcbnew/pcbnew_jobs_handler.cpp @@ -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;