drc: silk to silk clerance test should not report errors for hidden text
This commit is contained in:
parent
aee16efe32
commit
8eb9d34aad
|
@ -132,6 +132,22 @@ bool DRC_TEST_PROVIDER_SILK_TO_SILK::Run()
|
||||||
MODULE *parentModRef = nullptr;
|
MODULE *parentModRef = nullptr;
|
||||||
MODULE *parentModTest = nullptr;
|
MODULE *parentModTest = nullptr;
|
||||||
|
|
||||||
|
if( typeRef == PCB_MODULE_TEXT_T )
|
||||||
|
{
|
||||||
|
auto textRef = static_cast<TEXTE_MODULE*>( aRefItem->parent );
|
||||||
|
|
||||||
|
if( !textRef->IsVisible( ) )
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
|
if( typeTest == PCB_MODULE_TEXT_T )
|
||||||
|
{
|
||||||
|
auto textTest = static_cast<TEXTE_MODULE*>( aTestItem->parent );
|
||||||
|
|
||||||
|
if( !textTest->IsVisible( ) )
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
if( typeRef == PCB_MODULE_EDGE_T || typeRef == PCB_MODULE_TEXT_T )
|
if( typeRef == PCB_MODULE_EDGE_T || typeRef == PCB_MODULE_TEXT_T )
|
||||||
{
|
{
|
||||||
parentModRef = static_cast<MODULE*> ( aRefItem->parent->GetParent() );
|
parentModRef = static_cast<MODULE*> ( aRefItem->parent->GetParent() );
|
||||||
|
|
Loading…
Reference in New Issue