mirror of
https://github.com/ShareX/ShareX.git
synced 2024-10-01 17:56:51 +13:00
Properly use DeleteShape
This commit is contained in:
parent
ac0cfcd4ec
commit
b43c374d86
1 changed files with 2 additions and 4 deletions
|
@ -1672,8 +1672,7 @@ public void CollapseAllHorizontal(float x, float width)
|
||||||
|
|
||||||
foreach (BaseShape shape in toDelete)
|
foreach (BaseShape shape in toDelete)
|
||||||
{
|
{
|
||||||
shape.Dispose();
|
DeleteShape(shape);
|
||||||
Shapes.Remove(shape);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1726,8 +1725,7 @@ public void CollapseAllVertical(float y, float height)
|
||||||
|
|
||||||
foreach (BaseShape shape in toDelete)
|
foreach (BaseShape shape in toDelete)
|
||||||
{
|
{
|
||||||
shape.Dispose();
|
DeleteShape(shape);
|
||||||
Shapes.Remove(shape);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue