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:
parent
4c8f556b80
commit
cffc99e384
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue