From d2befca5af34d069760832a9d1c159a4f6bd487c Mon Sep 17 00:00:00 2001 From: Jeff Young Date: Sun, 1 Nov 2020 12:13:53 +0000 Subject: [PATCH] Clear subshapes before using again on a different layer. Fixes https://gitlab.com/kicad/code/kicad/issues/6248 --- pcbnew/drc/drc_rtree.h | 1 + 1 file changed, 1 insertion(+) diff --git a/pcbnew/drc/drc_rtree.h b/pcbnew/drc/drc_rtree.h index 2365d90bed..2e8867dec1 100644 --- a/pcbnew/drc/drc_rtree.h +++ b/pcbnew/drc/drc_rtree.h @@ -92,6 +92,7 @@ public: [&]( PCB_LAYER_ID layer ) { std::shared_ptr shape = aItem->GetEffectiveShape( layer ); + subshapes.clear(); if( shape->HasIndexableSubshapes() ) shape->GetIndexableSubshapes( subshapes );