Apply default line style.

Fixes https://gitlab.com/kicad/code/kicad/issues/10388
This commit is contained in:
Jeff Young 2022-01-14 15:40:24 +00:00
parent 07013d00e1
commit a533d64417
1 changed files with 1 additions and 4 deletions

View File

@ -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;