Fix assert.
This commit is contained in:
parent
921181b20b
commit
f272056f20
|
@ -556,9 +556,9 @@ int BOARD_INSPECTION_TOOL::InspectClearance( const TOOL_EVENT& aEvent )
|
||||||
layer = active;
|
layer = active;
|
||||||
else if( hasHole( b ) && a->IsOnLayer( active ) && IsCopperLayer( active ) )
|
else if( hasHole( b ) && a->IsOnLayer( active ) && IsCopperLayer( active ) )
|
||||||
layer = active;
|
layer = active;
|
||||||
else if( hasHole( a ) && IsCopperLayer( b->GetLayer() ) )
|
else if( hasHole( a ) && b->IsOnCopperLayer() )
|
||||||
layer = b->GetLayer();
|
layer = b->GetLayer();
|
||||||
else if( hasHole( b ) && IsCopperLayer( a->GetLayer() ) )
|
else if( hasHole( b ) && b->IsOnCopperLayer() )
|
||||||
layer = a->GetLayer();
|
layer = a->GetLayer();
|
||||||
|
|
||||||
if( layer >= 0 )
|
if( layer >= 0 )
|
||||||
|
|
Loading…
Reference in New Issue