From 383626437ca8f9d26518408719b5d778e696eecd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20Frings-F=C3=BCrst?= Date: Sat, 21 Aug 2021 10:58:17 +0200 Subject: New upstream version 40.1 --- src/page.vala | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/page.vala') 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) -- cgit v1.2.3