diff --git a/common/plotters/GERBER_plotter.cpp b/common/plotters/GERBER_plotter.cpp index daeed7e114..d40eec796d 100644 --- a/common/plotters/GERBER_plotter.cpp +++ b/common/plotters/GERBER_plotter.cpp @@ -389,7 +389,7 @@ int GERBER_PLOTTER::GetOrCreateAperture( const std::vector& aCorners, d for( size_t ii = 0; ii < aCorners.size(); ii++ ) { - if( aCorners[ii] != m_apertures[m_currentApertureIdx].m_Corners[ii] ) + if( aCorners[ii] != tool->m_Corners[ii] ) { is_same = false; break;