From 97a4e535dc12c732c9b80ff5bfe4b616cd84870f Mon Sep 17 00:00:00 2001 From: jean-pierre charras Date: Thu, 13 Apr 2023 17:21:51 +0200 Subject: [PATCH] ConvertOutlineToPolygon(): fix handling of polygons living in footprints. Due to recent changes in PCB_SHAPE items, the polygon coordinates are now in board coordinates, not in coord relatives to the parent footprint. Fixes #14530 https://gitlab.com/kicad/code/kicad/issues/14530 --- pcbnew/convert_shape_list_to_polygon.cpp | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/pcbnew/convert_shape_list_to_polygon.cpp b/pcbnew/convert_shape_list_to_polygon.cpp index 033b7b1489..3a313c13a8 100644 --- a/pcbnew/convert_shape_list_to_polygon.cpp +++ b/pcbnew/convert_shape_list_to_polygon.cpp @@ -220,20 +220,9 @@ bool ConvertOutlineToPolygon( std::vector& aShapeList, SHAPE_POLY_SE // with other shapes), so process them separately. if( graphic->GetShape() == SHAPE_T::POLY ) { - EDA_ANGLE orientation = ANGLE_0; - VECTOR2I offset = VECTOR2I( 0, 0 ); - - if( graphic->GetParentFootprint() ) - { - orientation = graphic->GetParentFootprint()->GetOrientation(); - offset = graphic->GetParentFootprint()->GetPosition(); - } - for( auto it = graphic->GetPolyShape().CIterate(); it; it++ ) { VECTOR2I pt = *it; - RotatePoint( pt, orientation ); - pt += offset; currContour.Append( pt );