From ae0fa8f93457796ca248176680d786232001a899 Mon Sep 17 00:00:00 2001 From: Colin McMillen Date: Fri, 1 Sep 2023 10:27:39 -0400 Subject: [PATCH] when crop committed, set rating to (at least) 1 --- Program.cs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Program.cs b/Program.cs index dadb0ef..4a3696c 100644 --- a/Program.cs +++ b/Program.cs @@ -185,6 +185,9 @@ public class CropTool : ITool { if (input.IsKeyPressed(Keys.Enter)) { game.Cursor = MouseCursor.Default; + if (photo.Rating < 1) { + photo.Rating = 1; + } photo.ViewOffset = new(photo.Size.X / 2 - Rectangle.Center(r).X, photo.Size.Y / 2 - Rectangle.Center(r).Y); return ToolStatus.Done;