From c614f73c50ab9d4baf8803c90ca7f014ed903fa4 Mon Sep 17 00:00:00 2001 From: jean-pierre charras Date: Fri, 25 May 2018 20:50:00 +0200 Subject: [PATCH] HPGL plotter fix incorrect scaling factor A 0.4% scale error in hpgl plots was previously existing since a long time. Fixes: lp:1772828 https://bugs.launchpad.net/kicad/+bug/1772828 --- common/plotters/HPGL_plotter.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/common/plotters/HPGL_plotter.cpp b/common/plotters/HPGL_plotter.cpp index 75383c358e..3213292ca0 100644 --- a/common/plotters/HPGL_plotter.cpp +++ b/common/plotters/HPGL_plotter.cpp @@ -210,8 +210,9 @@ // EP; draws the polygon outline. It usually gives a better look to the filled polygon static const char hpgl_end_polygon_cmd[] = "PM 2; FP; EP;\n"; -// HPGL scale factor (1 PLU = 1/40mm = 25 micrometers) -static const double PLUsPERDECIMIL = 0.102041; +// HPGL scale factor (1 Plotter Logical Unit = 1/40mm = 25 micrometers) +// PLUsPERDECIMIL = (25.4 / 10000) / 0.025 +static const double PLUsPERDECIMIL = 0.1016; HPGL_PLOTTER::HPGL_PLOTTER() {