Update collide for hole

As hole don't keep track of the net, update the collide function to keep it working

(cherry picked from commit b1a4353c34)
This commit is contained in:
Lucas Dumont 2023-04-28 08:44:11 +12:00 committed by Jeff Young
parent 0fb2f35b10
commit 8ffba3a52f
1 changed files with 1 additions and 1 deletions

View File

@ -111,7 +111,7 @@ bool ITEM::collideSimple( const ITEM* aHead, const NODE* aNode,
if( Kind() == HOLE_T && aHead->Kind() == HOLE_T )
differentNetsOnly = false;
if( differentNetsOnly && m_net == aHead->m_net && m_net >= 0 && aHead->m_net >= 0 )
if( differentNetsOnly && Net() == aHead->m_net && aHead->m_net >= 0 )
{
// same nets? no clearance!
clearance = -1;