[simple-scan/cherry-pick-7630ddc7-2] Set Scan Area to Maximum in case, automatic mode were enabled.
- From: Bartosz <bkosiorek src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [simple-scan/cherry-pick-7630ddc7-2] Set Scan Area to Maximum in case, automatic mode were enabled.
- Date: Wed, 26 Aug 2020 21:57:11 +0000 (UTC)
commit 0de9138c317dc4043f478e4a1e8f342b0afaa7ac
Author: Bartosz Kosiorek <gang65 poczta onet pl>
Date: Thu Apr 2 14:31:03 2020 +0000
Set Scan Area to Maximum in case, automatic mode were enabled.
Fix: #90
(cherry picked from commit 7630ddc7f9632ce692cf6ba0321d7d39eddbae38)
src/scanner.vala | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
---
diff --git a/src/scanner.vala b/src/scanner.vala
index 3c683660..aa4b86fa 100644
--- a/src/scanner.vala
+++ b/src/scanner.vala
@@ -1113,7 +1113,12 @@ public class Scanner : Object
else
set_option_to_max (handle, option, index);
}
-
+ if (job.page_width == 0) /* #90 Fix automatic mode for Epson scanners */
+ {
+ option = get_option_by_name (handle, "scan-area", out index);
+ if (option != null)
+ set_string_option (handle, option, index, "Maximum", null);
+ }
/* Set page size */
option = get_option_by_name (handle, Sane.NAME_PAGE_WIDTH, out index);
if (option != null && job.page_width > 0.0)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]