From 048715ab91b61277f0d7dba8b45f76f362e3a203 Mon Sep 17 00:00:00 2001 From: jean-pierre charras Date: Thu, 19 Nov 2020 09:16:56 +0100 Subject: [PATCH] Gerber output: fix incorrect creation of trapezoid apertures. When creating 4 corners (trapezoid) apertures, the rotation parameter was not tested, therefore shapes actually used could have incorrect rotation. Fixes #6432 https://gitlab.com/kicad/code/kicad/issues/6432 --- common/plotters/GERBER_plotter.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/common/plotters/GERBER_plotter.cpp b/common/plotters/GERBER_plotter.cpp index f7eb71c735..7e22cdd9c9 100644 --- a/common/plotters/GERBER_plotter.cpp +++ b/common/plotters/GERBER_plotter.cpp @@ -404,7 +404,9 @@ int GERBER_PLOTTER::GetOrCreateAperture( const std::vector& aCorners, d last_D_code = tool->m_DCode; - if( (tool->m_Type == aType) && (tool->m_Corners.size() == aCorners.size() ) && + if( (tool->m_Type == aType) && + (tool->m_Corners.size() == aCorners.size() ) && + (tool->m_Rotation == aRotDegree) && (tool->m_ApertureAttribute == aApertureAttribute) ) { // A candidate is found. the corner lists must be the same