Clear subshapes before using again on a different layer.
Fixes https://gitlab.com/kicad/code/kicad/issues/6248
This commit is contained in:
parent
7676ba6f5d
commit
d2befca5af
|
@ -92,6 +92,7 @@ public:
|
|||
[&]( PCB_LAYER_ID layer )
|
||||
{
|
||||
std::shared_ptr<SHAPE> shape = aItem->GetEffectiveShape( layer );
|
||||
subshapes.clear();
|
||||
|
||||
if( shape->HasIndexableSubshapes() )
|
||||
shape->GetIndexableSubshapes( subshapes );
|
||||
|
|
Loading…
Reference in New Issue