From a2e9c0ea735b85cdcc8ac3769d6d88eee8d84fd2 Mon Sep 17 00:00:00 2001 From: Seth Hillbrand Date: Tue, 31 May 2022 13:43:51 -0700 Subject: [PATCH] Text BB is already rotated, don't re-do EDA_TEXT::TransformBoundingBoxWithClearanceToPolygon already accounts for text rotation, so we don't need to apply that twice Fixes https://gitlab.com/kicad/code/kicad/issues/11714 --- pcbnew/fp_text.cpp | 6 ------ 1 file changed, 6 deletions(-) diff --git a/pcbnew/fp_text.cpp b/pcbnew/fp_text.cpp index 67f6f3b31b..6f8e2e83b3 100644 --- a/pcbnew/fp_text.cpp +++ b/pcbnew/fp_text.cpp @@ -477,12 +477,6 @@ void FP_TEXT::TransformShapeWithClearanceToPolygon( SHAPE_POLY_SET& aCornerBuffe { SHAPE_POLY_SET buffer; EDA_TEXT::TransformBoundingBoxWithClearanceToPolygon( &buffer, aClearance ); - - const FOOTPRINT* parentFootprint = static_cast( m_parent ); - - if( parentFootprint ) - buffer.Rotate( DECIDEG2RAD( GetDrawRotation() ), GetTextPos() ); - aCornerBuffer.Append( buffer ); }