Fix assert.

This commit is contained in:
Jeff Young 2022-04-04 20:09:35 +01:00
parent 921181b20b
commit f272056f20
1 changed files with 2 additions and 2 deletions

View File

@ -556,9 +556,9 @@ int BOARD_INSPECTION_TOOL::InspectClearance( const TOOL_EVENT& aEvent )
layer = active;
else if( hasHole( b ) && a->IsOnLayer( active ) && IsCopperLayer( active ) )
layer = active;
else if( hasHole( a ) && IsCopperLayer( b->GetLayer() ) )
else if( hasHole( a ) && b->IsOnCopperLayer() )
layer = b->GetLayer();
else if( hasHole( b ) && IsCopperLayer( a->GetLayer() ) )
else if( hasHole( b ) && b->IsOnCopperLayer() )
layer = a->GetLayer();
if( layer >= 0 )