EEschema: fix incorrect plot of SCH_DIRECTIVE_LABEL graphic shape.
Fixes #15675 https://gitlab.com/kicad/code/kicad/-/issues/15675
This commit is contained in:
parent
e5bce16e31
commit
368233d6d7
|
@ -1217,6 +1217,7 @@ void SCH_LABEL_BASE::Plot( PLOTTER* aPlotter, bool aBackground ) const
|
||||||
{
|
{
|
||||||
aPlotter->MoveTo( s_poly[0] );
|
aPlotter->MoveTo( s_poly[0] );
|
||||||
aPlotter->LineTo( s_poly[1] );
|
aPlotter->LineTo( s_poly[1] );
|
||||||
|
aPlotter->PenFinish();
|
||||||
|
|
||||||
int diameter = ( s_poly[2] - s_poly[1] ).EuclideanNorm() * 2;
|
int diameter = ( s_poly[2] - s_poly[1] ).EuclideanNorm() * 2;
|
||||||
aPlotter->FilledCircle( s_poly[2], diameter , FILLED, nullptr );
|
aPlotter->FilledCircle( s_poly[2], diameter , FILLED, nullptr );
|
||||||
|
@ -1225,6 +1226,7 @@ void SCH_LABEL_BASE::Plot( PLOTTER* aPlotter, bool aBackground ) const
|
||||||
{
|
{
|
||||||
aPlotter->MoveTo( s_poly[0] );
|
aPlotter->MoveTo( s_poly[0] );
|
||||||
aPlotter->LineTo( s_poly[1] );
|
aPlotter->LineTo( s_poly[1] );
|
||||||
|
aPlotter->PenFinish();
|
||||||
|
|
||||||
int diameter = ( s_poly[2] - s_poly[1] ).EuclideanNorm() * 2;
|
int diameter = ( s_poly[2] - s_poly[1] ).EuclideanNorm() * 2;
|
||||||
aPlotter->ThickCircle( s_poly[2], diameter, penWidth, FILLED, nullptr );
|
aPlotter->ThickCircle( s_poly[2], diameter, penWidth, FILLED, nullptr );
|
||||||
|
|
Loading…
Reference in New Issue