Properly use DeleteShape

This commit is contained in:
Niels Martin Hansen 2022-08-17 08:49:45 +02:00
parent ac0cfcd4ec
commit b43c374d86

View file

@ -1672,8 +1672,7 @@ public void CollapseAllHorizontal(float x, float width)
foreach (BaseShape shape in toDelete)
{
shape.Dispose();
Shapes.Remove(shape);
DeleteShape(shape);
}
}
@ -1726,8 +1725,7 @@ public void CollapseAllVertical(float y, float height)
foreach (BaseShape shape in toDelete)
{
shape.Dispose();
Shapes.Remove(shape);
DeleteShape(shape);
}
}