Don't close filled polylines when printing

Eeschema/libedit support open, filled polylines.  When printing, this
should be drawn as a fill, followed by the polyline to avoid assumptions
about closed polygons in the graphic code

Fixes https://gitlab.com/kicad/code/kicad/issues/10537

(cherry picked from commit 615eda816e)
This commit is contained in:
Seth Hillbrand 2022-01-20 10:52:48 -08:00
parent 4c8f556b80
commit cffc99e384
1 changed files with 5 additions and 3 deletions

View File

@ -314,10 +314,12 @@ void LIB_SHAPE::print( const RENDER_SETTINGS* aSettings, const VECTOR2I& aOffset
break;
case SHAPE_T::POLY:
GRPoly( nullptr, DC, ptCount, buffer, true, 0, fillColor, fillColor );
if( penWidth > 0 )
GRPoly( nullptr, DC, ptCount, buffer, true, penWidth, color, fillColor );
else
GRPoly( nullptr, DC, ptCount, buffer, true, 0, fillColor, fillColor );
GRPoly( nullptr, DC, ptCount, buffer, false, penWidth, color, fillColor );
break;
case SHAPE_T::BEZIER: