Plating thickness appears on both sides of hole wall.

This commit is contained in:
Jeff Young 2022-04-04 20:46:56 +01:00
parent f7f6ea54fe
commit f8c92e355b
1 changed files with 2 additions and 2 deletions

View File

@ -428,9 +428,9 @@ void DRC_TEST_PROVIDER_COPPER_CLEARANCE::testItemAgainstZones( BOARD_ITEM* aItem
int size = hole->GetWidth();
// Note: drill size represents finish size, which means the actual hole
// size is the plating thickness larger.
// size is 2x the plating thickness larger.
if( pad->GetAttribute() == PAD_ATTRIB::PTH )
size += m_board->GetDesignSettings().GetHolePlatingThickness();
size += 2 * m_board->GetDesignSettings().GetHolePlatingThickness();
itemShape = std::make_shared<SHAPE_SEGMENT>( hole->GetSeg(), size );
}