Gerber file export: avoid duplicate corner when creating polygons (regions in Gerber dialect)
Fixes: lp:1847714 https://bugs.launchpad.net/kicad/+bug/1847714
This commit is contained in:
parent
d931bc72c7
commit
d6db6dedca
|
@ -524,7 +524,10 @@ void GERBER_PLOTTER:: PlotPoly( const std::vector< wxPoint >& aCornerList,
|
|||
for( unsigned ii = 1; ii < aCornerList.size(); ii++ )
|
||||
LineTo( aCornerList[ii] );
|
||||
|
||||
FinishTo( aCornerList[0] );
|
||||
// If the polygon is not closed, close it:
|
||||
if( aCornerList[0] != aCornerList[aCornerList.size()-1] )
|
||||
FinishTo( aCornerList[0] );
|
||||
|
||||
fputs( "G37*\n", outputFile );
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue