Browse Source

Don't muck with linestyle default when setting it.

Fixes https://gitlab.com/kicad/code/kicad/issues/11520
7.0
Jeff Young 3 years ago
parent
commit
036d283433
  1. 6
      eeschema/sch_line.cpp

6
eeschema/sch_line.cpp

@ -272,11 +272,7 @@ void SCH_LINE::SetLineStyle( const int aStyleId )
void SCH_LINE::SetLineStyle( const PLOT_DASH_TYPE aStyle )
{
if( aStyle == GetDefaultStyle() )
m_stroke.SetPlotStyle( PLOT_DASH_TYPE::DEFAULT );
else
m_stroke.SetPlotStyle( aStyle );
m_stroke.SetPlotStyle( aStyle );
m_lastResolvedLineStyle = GetLineStyle();
}

Loading…
Cancel
Save