diff --git a/ShareX.ScreenCaptureLib/Forms/RectangleRegionForm.cs b/ShareX.ScreenCaptureLib/Forms/RectangleRegionForm.cs index d5147f7d4..8aa8653a8 100644 --- a/ShareX.ScreenCaptureLib/Forms/RectangleRegionForm.cs +++ b/ShareX.ScreenCaptureLib/Forms/RectangleRegionForm.cs @@ -211,6 +211,8 @@ protected override void Draw(Graphics g) effectShape.OnDraw(g); } + ShapeManager.OrderStepShapes(); + // Draw drawing shapes foreach (BaseDrawingShape drawingShape in ShapeManager.DrawingShapes) { diff --git a/ShareX.ScreenCaptureLib/Shapes/ShapeManager.cs b/ShareX.ScreenCaptureLib/Shapes/ShapeManager.cs index e844dfe94..d25ea4d99 100644 --- a/ShareX.ScreenCaptureLib/Shapes/ShapeManager.cs +++ b/ShareX.ScreenCaptureLib/Shapes/ShapeManager.cs @@ -1315,6 +1315,16 @@ public void ResumeForm() form.Resume(); } + public void OrderStepShapes() + { + int i = 1; + + foreach (StepDrawingShape shape in Shapes.OfType()) + { + shape.Number = i++; + } + } + private void OnCurrentShapeChanged(BaseShape shape) { if (CurrentShapeChanged != null)