mirror of
https://github.com/ShareX/ShareX.git
synced 2024-07-01 04:30:49 +12:00
Properly use DeleteShape
This commit is contained in:
parent
ac0cfcd4ec
commit
b43c374d86
|
@ -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