Browse Source

Reset GAL pen width between drawing text and border.

Fixes https://gitlab.com/kicad/code/kicad/issues/11059
7.0
Jeff Young 4 years ago
parent
commit
4923f02651
  1. 4
      eeschema/sch_painter.cpp

4
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 )
{

Loading…
Cancel
Save