From 4923f026512a9e30b06eca7d5a62668d69184175 Mon Sep 17 00:00:00 2001 From: Jeff Young Date: Sun, 6 Mar 2022 20:32:01 +0000 Subject: [PATCH] Reset GAL pen width between drawing text and border. Fixes https://gitlab.com/kicad/code/kicad/issues/11059 --- eeschema/sch_painter.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/eeschema/sch_painter.cpp b/eeschema/sch_painter.cpp index b855048feb..885f3c5f02 100644 --- a/eeschema/sch_painter.cpp +++ b/eeschema/sch_painter.cpp @@ -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 ) {