diff options
author | Jörg Frings-Fürst <debian@jff.email> | 2021-08-21 10:58:21 +0200 |
---|---|---|
committer | Jörg Frings-Fürst <debian@jff.email> | 2021-08-21 10:58:21 +0200 |
commit | 11c0cfbd587f1f07c797ac506e1b0cac63cfd2c7 (patch) | |
tree | 3953a15b915d41a87f5d586c968b3ef22c50deb1 /src/page.vala | |
parent | c502fe7b056b00189313cdf1d7494ecf150acd52 (diff) | |
parent | 383626437ca8f9d26518408719b5d778e696eecd (diff) |
Update upstream source from tag 'upstream/40.1'
Update to upstream version '40.1'
with Debian dir c17505f9670c12d3b8774b06e0aa025eaae21458
Diffstat (limited to 'src/page.vala')
-rw-r--r-- | src/page.vala | 4 |
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) |