Don't muck with linestyle default when setting it.
Fixes https://gitlab.com/kicad/code/kicad/issues/11520
This commit is contained in:
parent
804ab5609e
commit
036d283433
|
@ -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…
Reference in New Issue