Don't draw 0-clearance clearance lines.

Fixes https://gitlab.com/kicad/code/kicad/issues/6108
This commit is contained in:
Jeff Young 2020-10-22 11:56:30 +01:00
parent af184e58b5
commit 883c9e14f3
1 changed files with 2 additions and 3 deletions

View File

@ -1083,7 +1083,7 @@ void PCB_PAINTER::draw( const D_PAD* aPad, int aLayer )
int clearance = aPad->GetOwnClearance( m_pcbSettings.GetActiveLayer() );
if( flashActiveLayer )
if( flashActiveLayer && clearance > 0 )
{
auto shape = std::dynamic_pointer_cast<SHAPE_COMPOUND>( aPad->GetEffectiveShape() );
@ -1107,7 +1107,7 @@ void PCB_PAINTER::draw( const D_PAD* aPad, int aLayer )
m_gal->DrawPolygon( polySet );
}
}
else if( aPad->GetEffectiveHoleShape() )
else if( aPad->GetEffectiveHoleShape() && clearance > 0 )
{
clearance += bds.GetHolePlatingThickness();
@ -1115,7 +1115,6 @@ void PCB_PAINTER::draw( const D_PAD* aPad, int aLayer )
m_gal->DrawSegment( seg->GetSeg().A, seg->GetSeg().B,
seg->GetWidth() + 2 * clearance );
}
}
}
}