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
This commit is contained in:
Seth Hillbrand 2022-05-31 13:43:51 -07:00
parent 0f4eefc9fc
commit a2e9c0ea73
1 changed files with 0 additions and 6 deletions

View File

@ -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<const FOOTPRINT*>( m_parent );
if( parentFootprint )
buffer.Rotate( DECIDEG2RAD( GetDrawRotation() ), GetTextPos() );
aCornerBuffer.Append( buffer );
}