summaryrefslogtreecommitdiff
path: root/src/autosave-manager.vala
diff options
context:
space:
mode:
authorJörg Frings-Fürst <debian@jff.email>2024-07-21 19:58:31 +0200
committerJörg Frings-Fürst <debian@jff.email>2024-07-21 19:58:31 +0200
commit5a514d891db203b803a37c2110184f537fcd5608 (patch)
tree0c85f179d5cfeb471f3227bd4a94998e3aaf4ee1 /src/autosave-manager.vala
parent408791709f23be34de957320384d02b228ea488f (diff)
parent35c7b263d4fc6910be51005193095cfbdeaa969a (diff)
Merge branch 'release/debian/46.0-1'HEADdebian/46.0-1master
Diffstat (limited to 'src/autosave-manager.vala')
-rw-r--r--src/autosave-manager.vala10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/autosave-manager.vala b/src/autosave-manager.vala
index 7e92d33..31fd328 100644
--- a/src/autosave-manager.vala
+++ b/src/autosave-manager.vala
@@ -117,8 +117,16 @@ public class AutosaveManager
var pixels_filename = get_value (file, page_name, "pixels-filename");
var has_crop = get_boolean (file, page_name, "has-crop");
var crop_name = get_value (file, page_name, "crop-name");
+
if (crop_name == "")
- crop_name = null;
+ {
+ // If it has no crop name but has crop it probably means that it is a custom crop
+ if (has_crop)
+ crop_name = "custom";
+ else
+ crop_name = null;
+ }
+
var crop_x = get_integer (file, page_name, "crop-x");
var crop_y = get_integer (file, page_name, "crop-y");
var crop_width = get_integer (file, page_name, "crop-width");