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:
parent
0f4eefc9fc
commit
a2e9c0ea73
|
@ -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 );
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue