summaryrefslogtreecommitdiff
path: root/src/page.vala
diff options
context:
space:
mode:
authorJörg Frings-Fürst <debian@jff.email>2021-08-22 19:00:53 +0200
committerJörg Frings-Fürst <debian@jff.email>2021-08-22 19:00:53 +0200
commit9a828fe5ebd2383cce394eb76f44d14a9dbf143e (patch)
treece52323fc58d008fd7894b6bdc68b878f405c7df /src/page.vala
parentaaee9a923e009ee33fad324687579ede5de7e6ce (diff)
parentb97bb9c9e991504bb4fae916a75a8426b78b68b9 (diff)
Merge branch 'release/debian/40.1-1'debian/40.1-1
Diffstat (limited to 'src/page.vala')
-rw-r--r--src/page.vala4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/page.vala b/src/page.vala
index c6b532e..62af773 100644
--- a/src/page.vala
+++ b/src/page.vala
@@ -216,8 +216,8 @@ public class Page : Object
this.crop_name = crop_name;
this.crop_x = crop_x;
this.crop_y = crop_y;
- this.crop_width = crop_width;
- this.crop_height = crop_height;
+ this.crop_width = (crop_x + crop_width > scan_width) ? scan_width : crop_width;
+ this.crop_height = (crop_y + crop_height > scan_height) ? scan_height : crop_height;
}
public void set_page_info (ScanPageInfo info)