Board edges tester also needs to check silk text for visibility.

Fixes https://gitlab.com/kicad/code/kicad/issues/5989
This commit is contained in:
Jeff Young 2020-10-13 00:56:21 +01:00
parent 83d231cd49
commit 2e6968e7eb
1 changed files with 3 additions and 0 deletions

View File

@ -188,6 +188,9 @@ bool DRC_TEST_PROVIDER_EDGE_CLEARANCE::Run()
drc_dbg( 10, "BoardT %d %p %s %d\n", boardItem->Type(), boardItem,
boardItem->GetClass(), boardItem->GetLayer() );
if( isInvisibleText( boardItem ) )
continue;
const std::shared_ptr<SHAPE>& shape = boardItem->GetEffectiveShape();
auto constraint = m_drcEngine->EvalRulesForItems( DRC_CONSTRAINT_TYPE_SILK_CLEARANCE,