Reset GAL pen width between drawing text and border.

Fixes https://gitlab.com/kicad/code/kicad/issues/11059
This commit is contained in:
Jeff Young 2022-03-06 20:32:01 +00:00
parent 3969045009
commit 4923f02651
1 changed files with 3 additions and 1 deletions

View File

@ -1053,8 +1053,10 @@ void SCH_PAINTER::draw( const LIB_TEXTBOX* aTextBox, int aLayer )
{
drawText();
if( aTextBox->GetEffectivePenWidth( &m_schSettings ) > 0 )
if( borderWidth > 0 )
{
m_gal->SetLineWidth( borderWidth );
if( !m_schSettings.m_OverrideItemColors && !aTextBox->IsBrightened()
&& aTextBox->GetStroke().GetColor() != COLOR4D::UNSPECIFIED )
{