Fix typo.

Fixes https://gitlab.com/kicad/code/kicad/-/issues/16542
This commit is contained in:
Jeff Young 2024-01-10 18:32:08 +00:00
parent c95db272ca
commit 94a7d1647f
1 changed files with 3 additions and 3 deletions

View File

@ -1264,11 +1264,11 @@ void SCH_PAINTER::draw( const LIB_TEXTBOX* aTextBox, int aLayer, bool aDimmed )
|| borderColor == COLOR4D::UNSPECIFIED )
{
borderColor = m_schSettings.GetLayerColor( aLayer );
if( transparency > 0.0 )
borderColor = borderColor.WithAlpha( borderColor.a * ( 1.0 - transparency ) );
}
if( transparency > 0.0 )
borderColor = borderColor.WithAlpha( borderColor.a * ( 1.0 - transparency ) );
if( aDimmed )
{
borderColor = borderColor.Mix( bg, 0.5f );