Don't include plating thickness when drawing hole clearance lines.

We don't include it in the router, and the code didn't
differentiate between plated and non-plated holes, and it confuses
users.

Fixes https://gitlab.com/kicad/code/kicad/-/issues/15575

(cherry picked from commit 0cde8cff1d)
This commit is contained in:
Jeff Young 2023-09-04 16:05:14 +01:00
parent 14d4c38979
commit 123ff326d4
1 changed files with 0 additions and 2 deletions

View File

@ -1623,8 +1623,6 @@ void PCB_PAINTER::draw( const PAD* aPad, int aLayer )
} }
else if( aPad->GetEffectiveHoleShape() && clearance > 0 ) else if( aPad->GetEffectiveHoleShape() && clearance > 0 )
{ {
clearance += m_holePlatingThickness;
std::shared_ptr<SHAPE_SEGMENT> slot = aPad->GetEffectiveHoleShape(); std::shared_ptr<SHAPE_SEGMENT> slot = aPad->GetEffectiveHoleShape();
m_gal->DrawSegment( slot->GetSeg().A, slot->GetSeg().B, m_gal->DrawSegment( slot->GetSeg().A, slot->GetSeg().B,
slot->GetWidth() + 2 * clearance ); slot->GetWidth() + 2 * clearance );