Plating thickness appears on both sides of hole wall.
This commit is contained in:
parent
f7f6ea54fe
commit
f8c92e355b
|
@ -428,9 +428,9 @@ void DRC_TEST_PROVIDER_COPPER_CLEARANCE::testItemAgainstZones( BOARD_ITEM* aItem
|
||||||
int size = hole->GetWidth();
|
int size = hole->GetWidth();
|
||||||
|
|
||||||
// Note: drill size represents finish size, which means the actual hole
|
// 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 )
|
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 );
|
itemShape = std::make_shared<SHAPE_SEGMENT>( hole->GetSeg(), size );
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue