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:
parent
511f4cd03c
commit
ae113ea299
|
@ -761,6 +761,12 @@ static void inDiffPair( LIBEVAL::CONTEXT* aCtx, void* self )
|
|||
if( polarity == 0 )
|
||||
return;
|
||||
|
||||
if( BOARD* board = item->GetBoard() )
|
||||
{
|
||||
if( !board->FindNet( coupledNet ) )
|
||||
return;
|
||||
}
|
||||
|
||||
if( baseName.Matches( arg->AsString() ) )
|
||||
result->Set( 1.0 );
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue