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
This commit is contained in:
parent
6810479a19
commit
615eda816e
|
@ -315,10 +315,12 @@ void LIB_SHAPE::print( const RENDER_SETTINGS* aSettings, const wxPoint& 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