Be more careful with alpha value.

Fixes https://gitlab.com/kicad/code/kicad/issues/8850
This commit is contained in:
Jeff Young 2021-08-02 18:24:01 +01:00
parent c34f45f646
commit 8b9161b27d
1 changed files with 5 additions and 5 deletions

View File

@ -1709,7 +1709,7 @@ void PCB_PAINTER::draw( const ZONE* aZone, int aLayer )
if( m_pcbSettings.m_zoneOutlines && outline && outline->OutlineCount() > 0 )
{
m_gal->SetStrokeColor( color.WithAlpha( 1.0 ) );
m_gal->SetStrokeColor( color.a > 0.0 ? color.WithAlpha( 1.0 ) : color );
m_gal->SetIsFill( false );
m_gal->SetIsStroke( true );
m_gal->SetLineWidth( m_pcbSettings.m_outlineWidth );