DRC: inDiffPair should return false if the coupled net is missing

Fixes https://gitlab.com/kicad/code/kicad/-/issues/8268
This commit is contained in:
Jon Evans 2021-04-21 22:41:17 -04:00
parent 511f4cd03c
commit ae113ea299
1 changed files with 6 additions and 0 deletions

View File

@ -761,6 +761,12 @@ static void inDiffPair( LIBEVAL::CONTEXT* aCtx, void* self )
if( polarity == 0 ) if( polarity == 0 )
return; return;
if( BOARD* board = item->GetBoard() )
{
if( !board->FindNet( coupledNet ) )
return;
}
if( baseName.Matches( arg->AsString() ) ) if( baseName.Matches( arg->AsString() ) )
result->Set( 1.0 ); result->Set( 1.0 );
} }