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:
jean-pierre charras 2023-09-18 09:07:51 +02:00
parent e5bce16e31
commit 368233d6d7
1 changed files with 2 additions and 0 deletions

View File

@ -1217,6 +1217,7 @@ void SCH_LABEL_BASE::Plot( PLOTTER* aPlotter, bool aBackground ) const
{
aPlotter->MoveTo( s_poly[0] );
aPlotter->LineTo( s_poly[1] );
aPlotter->PenFinish();
int diameter = ( s_poly[2] - s_poly[1] ).EuclideanNorm() * 2;
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->LineTo( s_poly[1] );
aPlotter->PenFinish();
int diameter = ( s_poly[2] - s_poly[1] ).EuclideanNorm() * 2;
aPlotter->ThickCircle( s_poly[2], diameter, penWidth, FILLED, nullptr );