Browse Source

when crop committed, set rating to (at least) 1

main
Colin McMillen 9 months ago
parent
commit
ae0fa8f934
  1. 3
      Program.cs

3
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;

Loading…
Cancel
Save