Fix bounding box of text in footprint not properly rotated in 6.0.5 stable version
It is fixed in Master branch, so apply a fix similar to b6e8beb3
from master
Fixes #8728
https://gitlab.com/kicad/code/kicad/issues/8728
This commit is contained in:
parent
54c68080f5
commit
24d049c017
|
@ -476,7 +476,16 @@ void FP_TEXT::TransformShapeWithClearanceToPolygon( SHAPE_POLY_SET& aCornerBuffe
|
|||
bool aIgnoreLineWidth ) const
|
||||
{
|
||||
SHAPE_POLY_SET buffer;
|
||||
EDA_TEXT::TransformBoundingBoxWithClearanceToPolygon( &buffer, aClearance );
|
||||
FP_TEXT dummy( *this );
|
||||
|
||||
// Take parent footprint in account:
|
||||
const FOOTPRINT* parentFootprint = static_cast<const FOOTPRINT*>( m_parent );
|
||||
|
||||
if( parentFootprint )
|
||||
dummy.SetTextAngle( GetTextAngle() + parentFootprint->GetOrientation() );
|
||||
|
||||
dummy.EDA_TEXT::TransformBoundingBoxWithClearanceToPolygon( &buffer, aClearance );
|
||||
|
||||
aCornerBuffer.Append( buffer );
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue