Polys aren't automatically closed.

Fixes https://gitlab.com/kicad/code/kicad/issues/12350
This commit is contained in:
Jeff Young 2022-09-04 00:13:25 +01:00
parent d5cf7828fa
commit 960e913632
1 changed files with 1 additions and 8 deletions

View File

@ -208,14 +208,7 @@ void SCH_SHAPE::Plot( PLOTTER* aPlotter, bool aBackground ) const
break;
case SHAPE_T::POLY:
{
aPlotter->MoveTo( cornerList[0] );
for( size_t ii = 1; ii < cornerList.size(); ++ii )
aPlotter->LineTo( cornerList[ii] );
aPlotter->FinishTo( cornerList[0] );
}
aPlotter->PlotPoly( cornerList, FILL_T::NO_FILL, pen_size );
break;
case SHAPE_T::BEZIER: