mirror of
https://github.com/ShareX/ShareX.git
synced 2024-10-04 04:06:05 +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);
|
||||
}
|
||||
|
||||
ShapeManager.OrderStepShapes();
|
||||
|
||||
// Draw drawing shapes
|
||||
foreach (BaseDrawingShape drawingShape in ShapeManager.DrawingShapes)
|
||||
{
|
||||
|
|
|
@ -1315,6 +1315,16 @@ public void ResumeForm()
|
|||
form.Resume();
|
||||
}
|
||||
|
||||
public void OrderStepShapes()
|
||||
{
|
||||
int i = 1;
|
||||
|
||||
foreach (StepDrawingShape shape in Shapes.OfType<StepDrawingShape>())
|
||||
{
|
||||
shape.Number = i++;
|
||||
}
|
||||
}
|
||||
|
||||
private void OnCurrentShapeChanged(BaseShape shape)
|
||||
{
|
||||
if (CurrentShapeChanged != null)
|
||||
|
|
Loading…
Reference in a new issue