From 08f0e8d6e8b5f85592d83b30ae66dfd566fdb60e Mon Sep 17 00:00:00 2001 From: jean-pierre charras Date: Thu, 12 Mar 2020 16:48:44 +0100 Subject: [PATCH] Pcbnew, Gerber output: always generates Aperture Attributes. Previously, for historical reasons, they were added only if Include Netlist Attributes option was on. But Aperture Attributes have nothing to do with Netlist Attributes, and good Gerber files must include them. --- common/plotters/GERBER_plotter.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/common/plotters/GERBER_plotter.cpp b/common/plotters/GERBER_plotter.cpp index f4b210a419..2d9c1fc673 100644 --- a/common/plotters/GERBER_plotter.cpp +++ b/common/plotters/GERBER_plotter.cpp @@ -347,9 +347,7 @@ void GERBER_PLOTTER::selectAperture( const wxSize& aSize, ( m_apertures[m_currentApertureIdx].m_Type != aType ) || ( m_apertures[m_currentApertureIdx].m_Size != aSize ); - if( !m_useNetAttributes ) - aApertureAttribute = 0; - else if( !change ) + if( !change ) change = m_apertures[m_currentApertureIdx].m_ApertureAttribute != aApertureAttribute; if( change )