router: treat negative net indices as always colliding

This commit is contained in:
Tomasz Włostowski 2018-02-16 17:35:40 +01:00
parent b05f95e7af
commit 50c1ff67eb
1 changed files with 1 additions and 1 deletions

View File

@ -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