Plotters: better support of filled circles having a thickness set to 0.

Setting a line thickness = 0 for graphic objects (circle, rect, line) is
allowed but creates issues for circles that were plotted a non filled shapes
but having a outline thickness = 0.
This commit is contained in:
jean-pierre charras
2020-10-12 11:30:43 +02:00
parent 88102bca46
commit 380534807b
5 changed files with 53 additions and 2 deletions
+13
View File
@@ -578,6 +578,19 @@ void PLOTTER::ThickCircle( const wxPoint& pos, int diametre, int width,
}
void PLOTTER::FilledCircle( const wxPoint& pos, int diametre,
EDA_DRAW_MODE_T tracemode, void* aData )
{
if( tracemode == FILLED )
Circle( pos, diametre, FILLED_SHAPE, 0 );
else
{
SetCurrentLineWidth( -1 );
Circle( pos, diametre, NO_FILL, -1 );
}
}
void PLOTTER::PlotPoly( const SHAPE_LINE_CHAIN& aCornerList, FILL_T aFill,
int aWidth, void * aData )
{