From e71422d2cf05d36bc4e0664759ff7b0eb39c56c2 Mon Sep 17 00:00:00 2001 From: Seth Hillbrand Date: Fri, 21 Jul 2023 11:21:26 -0700 Subject: [PATCH] Avoid bulking drawing sheet polygons On the drawing sheet, the polygons are always filled and shouldn't have additional stroking Fixes https://gitlab.com/kicad/code/kicad/-/issues/15242 --- common/plotters/common_plot_functions.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/plotters/common_plot_functions.cpp b/common/plotters/common_plot_functions.cpp index 4b296e8160..c6a3bc7133 100644 --- a/common/plotters/common_plot_functions.cpp +++ b/common/plotters/common_plot_functions.cpp @@ -160,7 +160,7 @@ void PlotDrawingSheet( PLOTTER* plotter, const PROJECT* aProject, const TITLE_BL case WSG_POLY_T: { DS_DRAW_ITEM_POLYPOLYGONS* poly = (DS_DRAW_ITEM_POLYPOLYGONS*) item; - int penWidth = std::max( poly->GetPenWidth(), defaultPenWidth ); + int penWidth = poly->GetPenWidth(); std::vector points; for( int idx = 0; idx < poly->GetPolygons().OutlineCount(); ++idx )