Revert part of 9c8941e04

This accidentally changed gerber plotting behavior, resulting in invalid
aperture sizes

Fixes https://gitlab.com/kicad/code/kicad/issues/4232
This commit is contained in:
Seth Hillbrand 2020-04-20 15:41:18 -07:00
parent e57c495d05
commit 819f28daf5
1 changed files with 3 additions and 0 deletions

View File

@ -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<GBR_METADATA*>( aData );
int aperture_attribute = gbr_metadata ? gbr_metadata->GetApertureAttrib() : 0;