Reset plotter dash-style after use.

Fixes https://gitlab.com/kicad/code/kicad/issues/11527
This commit is contained in:
Jeff Young 2022-05-02 13:21:13 +01:00
parent 40c75c74fa
commit dfa6b9ed15
2 changed files with 2 additions and 0 deletions

View File

@ -347,6 +347,7 @@ void LIB_TEXTBOX::Plot( PLOTTER* aPlotter, bool aBackground, const VECTOR2I& aOf
aPlotter->SetColor( color );
aPlotter->SetDash( lineStyle );
aPlotter->Rect( start, end, FILL_T::NO_FILL, penWidth );
aPlotter->SetDash( PLOT_DASH_TYPE::SOLID );
}
LIB_TEXTBOX text( *this );

View File

@ -357,6 +357,7 @@ void SCH_TEXTBOX::Plot( PLOTTER* aPlotter, bool aBackground ) const
aPlotter->SetColor( color );
aPlotter->SetDash( lineStyle );
aPlotter->Rect( m_start, m_end, FILL_T::NO_FILL, penWidth );
aPlotter->SetDash( PLOT_DASH_TYPE::SOLID );
}
color = GetTextColor();