From a533d644173dec0ea426c1733fbbcf731f93dfbc Mon Sep 17 00:00:00 2001 From: Jeff Young Date: Fri, 14 Jan 2022 15:40:24 +0000 Subject: [PATCH] Apply default line style. Fixes https://gitlab.com/kicad/code/kicad/issues/10388 --- eeschema/sch_shape.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/eeschema/sch_shape.cpp b/eeschema/sch_shape.cpp index 3e5989f2e0..d0c3c64426 100644 --- a/eeschema/sch_shape.cpp +++ b/eeschema/sch_shape.cpp @@ -117,17 +117,15 @@ void SCH_SHAPE::Plot( PLOTTER* aPlotter ) const aPlotter->SetColor( GetStroke().GetColor() ); aPlotter->SetCurrentLineWidth( pen_size ); - aPlotter->SetDash( GetStroke().GetPlotStyle() ); + aPlotter->SetDash( GetEffectiveLineStyle() ); switch( GetShape() ) { case SHAPE_T::ARC: - // TODO: doesn't work for dash styles aPlotter->Arc( center, -endAngle, -startAngle, radius, FILL_T::NO_FILL, pen_size ); break; case SHAPE_T::CIRCLE: - // TODO: doesn't work for dash styles aPlotter->Circle( GetStart(), GetRadius() * 2, FILL_T::NO_FILL, pen_size ); break; @@ -155,7 +153,6 @@ void SCH_SHAPE::Plot( PLOTTER* aPlotter ) const break; case SHAPE_T::BEZIER: - // TODO: doesn't work for dash styles aPlotter->PlotPoly( m_bezierPoints, FILL_T::NO_FILL, pen_size ); break;