Treat 0-length ovals as circles
Some buggy SVG interpreters can't handle 0-length ovals. In this case, they are meant to be circles, so we can export as circles in our plotter. Fixes https://gitlab.com/kicad/code/kicad/issues/3995
This commit is contained in:
parent
fe8524b9bb
commit
e38ab6c699
|
@ -507,11 +507,18 @@ void PLOTTER::ThickSegment( const wxPoint& start, const wxPoint& end, int width,
|
|||
EDA_DRAW_MODE_T tracemode, void* aData )
|
||||
{
|
||||
if( tracemode == FILLED )
|
||||
{
|
||||
if( start == end )
|
||||
{
|
||||
Circle( start, width, FILLED_SHAPE, 0 );
|
||||
}
|
||||
else
|
||||
{
|
||||
SetCurrentLineWidth( width );
|
||||
MoveTo( start );
|
||||
FinishTo( end );
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
SetCurrentLineWidth( -1 );
|
||||
|
|
Loading…
Reference in New Issue