Need to check track/track clearance

The misplaced else prevented non-track/track intersection clearances
from being reported

Fixes https://gitlab.com/kicad/code/kicad/issues/7376
This commit is contained in:
Seth Hillbrand 2021-02-01 09:53:41 -08:00
parent 9069689e83
commit 23c6dbff38
1 changed files with 15 additions and 17 deletions

View File

@ -310,8 +310,7 @@ bool DRC_TEST_PROVIDER_COPPER_CLEARANCE::testTrackAgainstItem( TRACK* track, SHA
return m_drcEngine->GetReportAllTrackErrors();
}
}
else
{
std::shared_ptr<SHAPE> otherShape = getShape( other, layer );
if( trackShape->Collide( otherShape.get(), clearance - m_drcEpsilon, &actual, &pos ) )
@ -333,7 +332,6 @@ bool DRC_TEST_PROVIDER_COPPER_CLEARANCE::testTrackAgainstItem( TRACK* track, SHA
return false;
}
}
}
if( testHoles && ( other->Type() == PCB_VIA_T || other->Type() == PCB_PAD_T ) )
{