From 090423100051bd77624f7a35348fdbd57d56317a Mon Sep 17 00:00:00 2001 From: jean-pierre charras Date: Sat, 11 Nov 2023 17:01:01 +0100 Subject: [PATCH] Partial revert of commit d8498b62e0d44442b4e0038ed1fb765a796f0113, due to comments in PCB_TEXTBOX::TransformShapeToPolygon() --- pcbnew/pcb_textbox.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/pcbnew/pcb_textbox.cpp b/pcbnew/pcb_textbox.cpp index fcf6972690..68d7661639 100644 --- a/pcbnew/pcb_textbox.cpp +++ b/pcbnew/pcb_textbox.cpp @@ -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 )