Browse Source

Be more careful with alpha value.

Fixes https://gitlab.com/kicad/code/kicad/issues/8850
6.0.7
Jeff Young 4 years ago
parent
commit
8b9161b27d
  1. 2
      pcbnew/pcb_painter.cpp

2
pcbnew/pcb_painter.cpp

@ -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 );

Loading…
Cancel
Save