Partial revert of commit d8498b62e0, due to

comments in PCB_TEXTBOX::TransformShapeToPolygon()
This commit is contained in:
jean-pierre charras 2023-11-11 17:01:01 +01:00
parent d8498b62e0
commit 0904231000
1 changed files with 3 additions and 2 deletions

View File

@ -580,8 +580,9 @@ void PCB_TEXTBOX::TransformShapeToPolygon( SHAPE_POLY_SET& aBuffer, PCB_LAYER_ID
const SHAPE_LINE_CHAIN& poly = m_poly.Outline( 0 );
// build the polygon outline as a list of segmemts
// (The polygon is not filled).
for( int ii = 0; ii < poly.PointCount(); ++ii )
aBuffer.Append( poly.GetPoint( ii ) );
if( m_borderEnabled && width > 0 )
{
for( int ii = 0; ii < poly.SegmentCount(); ++ii )