mirror of
https://github.com/ShareX/ShareX.git
synced 2024-09-30 01:07:21 +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)
|
||||
{
|
||||
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);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue