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
This commit is contained in:
parent
2a0486845d
commit
55b6fdd1c4
|
@ -404,7 +404,7 @@ void D_CODE::ConvertShapeToPolygon( const GERBER_DRAW_ITEM* aParent )
|
||||||
addHoleToPolygon( &m_Polygon, m_DrillShape, m_Drill, initialpos );
|
addHoleToPolygon( &m_Polygon, m_DrillShape, m_Drill, initialpos );
|
||||||
|
|
||||||
if( !m_Rotation.IsZero() ) // rotate polygonal shape:
|
if( !m_Rotation.IsZero() ) // rotate polygonal shape:
|
||||||
m_Polygon.Rotate( m_Rotation );
|
m_Polygon.Rotate( -m_Rotation );
|
||||||
|
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue