From 819f28daf520992aa1a096808f801096aba69355 Mon Sep 17 00:00:00 2001 From: Seth Hillbrand Date: Mon, 20 Apr 2020 15:41:18 -0700 Subject: [PATCH] Revert part of 9c8941e04 This accidentally changed gerber plotting behavior, resulting in invalid aperture sizes Fixes https://gitlab.com/kicad/code/kicad/issues/4232 --- common/plotters/GERBER_plotter.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/common/plotters/GERBER_plotter.cpp b/common/plotters/GERBER_plotter.cpp index 64117b70b2..8d5a0c7b1b 100644 --- a/common/plotters/GERBER_plotter.cpp +++ b/common/plotters/GERBER_plotter.cpp @@ -284,6 +284,9 @@ bool GERBER_PLOTTER::EndPlot() void GERBER_PLOTTER::SetCurrentLineWidth( int aWidth, void* aData ) { + if( aWidth == DO_NOT_SET_LINE_WIDTH ) + return; + GBR_METADATA* gbr_metadata = static_cast( aData ); int aperture_attribute = gbr_metadata ? gbr_metadata->GetApertureAttrib() : 0;