Don't muck with linestyle default when setting it.

Fixes https://gitlab.com/kicad/code/kicad/issues/11520
This commit is contained in:
Jeff Young 2022-05-02 17:17:07 +01:00
parent 804ab5609e
commit 036d283433
1 changed files with 1 additions and 5 deletions

View File

@ -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();
}