Don't keepout a keepout's own footprint.

Fixes https://gitlab.com/kicad/code/kicad/issues/5371
This commit is contained in:
Jeff Young 2020-08-26 14:33:52 +01:00
parent f9e379c82a
commit 4e885990b8
1 changed files with 3 additions and 0 deletions

View File

@ -165,6 +165,9 @@ bool DRC_KEEPOUT_TESTER::checkFootprints()
for( MODULE* fp : m_board->Modules() )
{
if( m_zone->GetParent() == fp )
continue;
if( !m_zoneBBox.Intersects( fp->GetBoundingBox() ) )
continue;