From 1793fee6165c099e2e5a01476cecc64df934e864 Mon Sep 17 00:00:00 2001 From: Colin McMillen Date: Thu, 3 Aug 2023 23:46:46 -0400 Subject: [PATCH] restore crop position for a photo who gets edited with CropTool again --- Program.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Program.cs b/Program.cs index 05d4308..dafd6b7 100644 --- a/Program.cs +++ b/Program.cs @@ -88,6 +88,8 @@ public class CropTool : ITool { public CropTool(Photo photo) { activePhoto = photo; + mouseDragStart = new(photo.CropRectangle.Left, photo.CropRectangle.Top); + mouseDragEnd = new(photo.CropRectangle.Right, photo.CropRectangle.Bottom); } public ToolState HandleInput(UiGeometry geometry, KeyboardState input, MouseState mouse, Game game) {