Browse Source

Don't keepout a keepout's own footprint.

Fixes https://gitlab.com/kicad/code/kicad/issues/5371
pull/16/head
Jeff Young 5 years ago
parent
commit
4e885990b8
  1. 3
      pcbnew/drc/drc_keepout_tester.cpp

3
pcbnew/drc/drc_keepout_tester.cpp

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

Loading…
Cancel
Save