A footprint isn't "inside" itself.
Fixes https://gitlab.com/kicad/code/kicad/issues/7549
This commit is contained in:
parent
f2552d7bc1
commit
199ef61cdc
|
@ -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 ) )
|
||||
|
|
Loading…
Reference in New Issue