Fix missed last points

Fixes https://gitlab.com/kicad/code/kicad/-/issues/21596
This commit is contained in:
Seth Hillbrand 2025-08-30 08:33:17 -07:00
parent fe4ddc66eb
commit 1a3f6028f8
2 changed files with 3 additions and 1 deletions

View File

@ -1844,6 +1844,8 @@ std::vector<SHAPE*> EDA_SHAPE::makeEffectiveShapes( bool aEdgeOnly, bool aLineCh
for( int i = 0; i < outline.PointCount() - 1; ++i )
effectiveShapes.emplace_back(
new SHAPE_SEGMENT( outline.CPoint( i ), outline.CPoint( i + 1 ), width ) );
effectiveShapes.emplace_back( new SHAPE_SEGMENT( outline.CPoint( outline.PointCount() - 1 ), outline.CPoint( 0 ), width ) );
}
}
else

View File

@ -1102,7 +1102,7 @@ void BRDITEMS_PLOTTER::PlotShape( const PCB_SHAPE* aShape )
SHAPE_POLY_SET poly;
poly.NewOutline();
for( int ii = 0; ii < outline.PointCount() - 1; ++ii )
for( int ii = 0; ii < outline.PointCount(); ++ii )
poly.Append( outline.CPoint( ii ) );
if( margin < 0 )