A footprint isn't "inside" itself.

Fixes https://gitlab.com/kicad/code/kicad/issues/7549
This commit is contained in:
Jeff Young 2021-02-15 22:49:00 +00:00
parent f2552d7bc1
commit 199ef61cdc
1 changed files with 1 additions and 1 deletions

View File

@ -238,7 +238,7 @@ static void insideArea( LIBEVAL::CONTEXT* aCtx, void* self )
auto insideZone =
[&]( ZONE* zone ) -> bool
{
if( !zone || zone == item )
if( !zone || zone == item || zone->GetParent() == item )
return false;
if( !zone->GetCachedBoundingBox().Intersects( itemBBox ) )