Allow touching courtyards.

Fixes https://gitlab.com/kicad/code/kicad/issues/8076
This commit is contained in:
Jeff Young 2021-03-31 10:43:53 +01:00
parent 0a0935e0f3
commit 737262ffa8
1 changed files with 6 additions and 0 deletions

View File

@ -189,6 +189,9 @@ bool DRC_TEST_PROVIDER_COURTYARD_CLEARANCE::testCourtyardClearances()
test, F_Cu );
clearance = constraint.GetValue().Min();
// Touching courtyards, or courtyards -at- the clearance distance are legal.
clearance -= 1;
if( clearance >= 0 && footprintFront.Collide( &testFront, clearance, &actual, &pos ) )
{
std::shared_ptr<DRC_ITEM> drce = DRC_ITEM::Create( DRCE_OVERLAPPING_FOOTPRINTS );
@ -216,6 +219,9 @@ bool DRC_TEST_PROVIDER_COURTYARD_CLEARANCE::testCourtyardClearances()
test, B_Cu );
clearance = constraint.GetValue().Min();
// Touching courtyards, or courtyards -at- the clearance distance are legal.
clearance -= 1;
if( clearance >= 0 && footprintBack.Collide( &testBack, clearance, &actual, &pos ) )
{
std::shared_ptr<DRC_ITEM> drce = DRC_ITEM::Create( DRCE_OVERLAPPING_FOOTPRINTS );