mirror of
https://github.com/ShareX/ShareX.git
synced 2024-10-06 05:05:42 +13:00
Order step shapes before draw
This commit is contained in:
parent
b131585a9d
commit
eb8a9e5a90
2 changed files with 12 additions and 0 deletions
|
@ -211,6 +211,8 @@ protected override void Draw(Graphics g)
|
||||||
effectShape.OnDraw(g);
|
effectShape.OnDraw(g);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
ShapeManager.OrderStepShapes();
|
||||||
|
|
||||||
// Draw drawing shapes
|
// Draw drawing shapes
|
||||||
foreach (BaseDrawingShape drawingShape in ShapeManager.DrawingShapes)
|
foreach (BaseDrawingShape drawingShape in ShapeManager.DrawingShapes)
|
||||||
{
|
{
|
||||||
|
|
|
@ -1315,6 +1315,16 @@ public void ResumeForm()
|
||||||
form.Resume();
|
form.Resume();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public void OrderStepShapes()
|
||||||
|
{
|
||||||
|
int i = 1;
|
||||||
|
|
||||||
|
foreach (StepDrawingShape shape in Shapes.OfType<StepDrawingShape>())
|
||||||
|
{
|
||||||
|
shape.Number = i++;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
private void OnCurrentShapeChanged(BaseShape shape)
|
private void OnCurrentShapeChanged(BaseShape shape)
|
||||||
{
|
{
|
||||||
if (CurrentShapeChanged != null)
|
if (CurrentShapeChanged != null)
|
||||||
|
|
Loading…
Reference in a new issue