router: treat negative net indices as always colliding
This commit is contained in:
parent
b05f95e7af
commit
50c1ff67eb
|
@ -28,7 +28,7 @@ bool ITEM::collideSimple( const ITEM* aOther, int aClearance, bool aNeedMTV,
|
||||||
VECTOR2I& aMTV, bool aDifferentNetsOnly ) const
|
VECTOR2I& aMTV, bool aDifferentNetsOnly ) const
|
||||||
{
|
{
|
||||||
// same nets? no collision!
|
// same nets? no collision!
|
||||||
if( aDifferentNetsOnly && m_net == aOther->m_net )
|
if( aDifferentNetsOnly && m_net == aOther->m_net && m_net >= 0 && aOther->m_net >= 0 )
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
// check if we are not on completely different layers first
|
// check if we are not on completely different layers first
|
||||||
|
|
Loading…
Reference in New Issue