Reset GAL pen width between drawing text and border.
Fixes https://gitlab.com/kicad/code/kicad/issues/11059
This commit is contained in:
parent
3969045009
commit
4923f02651
|
@ -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…
Reference in New Issue