From 55b6fdd1c4950c55f179397bd2a0d10f603a8b3e Mon Sep 17 00:00:00 2001 From: jean-pierre charras <jp.charras@wanadoo.fr> Date: Sun, 31 Dec 2023 18:28:54 +0100 Subject: [PATCH] Gerbview: fix incorrect rotation of DCode shape type regular polygon. The rotation was the opposite of the actual rotation, due to the Y axis direction (top to bottom) coordinate in gerbview/dcode.cpp Fixes #16480 https://gitlab.com/kicad/code/kicad/-/issues/16480 --- gerbview/dcode.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gerbview/dcode.cpp b/gerbview/dcode.cpp index aba787b70a..22ae7b0b41 100644 --- a/gerbview/dcode.cpp +++ b/gerbview/dcode.cpp @@ -404,7 +404,7 @@ void D_CODE::ConvertShapeToPolygon( const GERBER_DRAW_ITEM* aParent ) addHoleToPolygon( &m_Polygon, m_DrillShape, m_Drill, initialpos ); if( !m_Rotation.IsZero() ) // rotate polygonal shape: - m_Polygon.Rotate( m_Rotation ); + m_Polygon.Rotate( -m_Rotation ); break;