Apply default line style.
Fixes https://gitlab.com/kicad/code/kicad/issues/10388
This commit is contained in:
parent
07013d00e1
commit
a533d64417
|
@ -117,17 +117,15 @@ void SCH_SHAPE::Plot( PLOTTER* aPlotter ) const
|
||||||
aPlotter->SetColor( GetStroke().GetColor() );
|
aPlotter->SetColor( GetStroke().GetColor() );
|
||||||
|
|
||||||
aPlotter->SetCurrentLineWidth( pen_size );
|
aPlotter->SetCurrentLineWidth( pen_size );
|
||||||
aPlotter->SetDash( GetStroke().GetPlotStyle() );
|
aPlotter->SetDash( GetEffectiveLineStyle() );
|
||||||
|
|
||||||
switch( GetShape() )
|
switch( GetShape() )
|
||||||
{
|
{
|
||||||
case SHAPE_T::ARC:
|
case SHAPE_T::ARC:
|
||||||
// TODO: doesn't work for dash styles
|
|
||||||
aPlotter->Arc( center, -endAngle, -startAngle, radius, FILL_T::NO_FILL, pen_size );
|
aPlotter->Arc( center, -endAngle, -startAngle, radius, FILL_T::NO_FILL, pen_size );
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case SHAPE_T::CIRCLE:
|
case SHAPE_T::CIRCLE:
|
||||||
// TODO: doesn't work for dash styles
|
|
||||||
aPlotter->Circle( GetStart(), GetRadius() * 2, FILL_T::NO_FILL, pen_size );
|
aPlotter->Circle( GetStart(), GetRadius() * 2, FILL_T::NO_FILL, pen_size );
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
@ -155,7 +153,6 @@ void SCH_SHAPE::Plot( PLOTTER* aPlotter ) const
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case SHAPE_T::BEZIER:
|
case SHAPE_T::BEZIER:
|
||||||
// TODO: doesn't work for dash styles
|
|
||||||
aPlotter->PlotPoly( m_bezierPoints, FILL_T::NO_FILL, pen_size );
|
aPlotter->PlotPoly( m_bezierPoints, FILL_T::NO_FILL, pen_size );
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue