mirror of
https://gitlab.com/kicad/code/kicad.git
synced 2025-04-20 23:41:40 +00:00
PNS: Check if either permutation is a keepout in collideSimple
Fixes https://gitlab.com/kicad/code/kicad/-/issues/19923
This commit is contained in:
parent
d51363df40
commit
078703111b
@ -196,7 +196,8 @@ bool ITEM::collideSimple( const ITEM* aHead, const NODE* aNode, int aLayer,
|
||||
// a pad associated with a "free" pin (NIC) doesn't have a net until it has been used
|
||||
clearance = -1;
|
||||
}
|
||||
else if( aNode->GetRuleResolver()->IsKeepout( this, aHead, &enforce ) )
|
||||
else if( aNode->GetRuleResolver()->IsKeepout( this, aHead, &enforce )
|
||||
|| aNode->GetRuleResolver()->IsKeepout( aHead, this, &enforce ) )
|
||||
{
|
||||
if( enforce )
|
||||
clearance = 0; // keepouts are exact boundary; no clearance
|
||||
|
Loading…
Reference in New Issue
Block a user