mirror of
https://gitlab.com/kicad/code/kicad.git
synced 2025-09-13 17:53:11 +02:00
Fix missed last points
Fixes https://gitlab.com/kicad/code/kicad/-/issues/21596
This commit is contained in:
parent
fe4ddc66eb
commit
1a3f6028f8
@ -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
|
||||
|
@ -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 )
|
||||
|
Loading…
x
Reference in New Issue
Block a user