diff options
author | Jörg Frings-Fürst <debian@jff.email> | 2024-06-30 20:46:13 +0200 |
---|---|---|
committer | Jörg Frings-Fürst <debian@jff.email> | 2024-06-30 20:46:13 +0200 |
commit | 9b3a82a302bd88c64bb714b009d223f8683f7178 (patch) | |
tree | 9c387fef03143f2f5f809672bf51e6495f874050 /src/autosave-manager.vala | |
parent | a675d0fb9f307b714d0b9cf19690d2b08b666d7c (diff) | |
parent | bca1cc8681bbaf662dabc961f84b06adc1255e08 (diff) |
Merge branch 'feature/upstream' into develop
Diffstat (limited to 'src/autosave-manager.vala')
-rw-r--r-- | src/autosave-manager.vala | 10 |
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"); |