summaryrefslogtreecommitdiff
path: root/src/scanner.vala
diff options
context:
space:
mode:
authorJörg Frings-Fürst <debian@jff.email>2021-09-25 07:49:36 +0200
committerJörg Frings-Fürst <debian@jff.email>2021-09-25 07:49:36 +0200
commit57cee6e642ad18e70f0deb7af73cc06507da76d8 (patch)
tree1075add029f5d63ac44cd2324ca8d0bfbd2ef70f /src/scanner.vala
parent5dbe503c985ce8a65ab7083172bf76332f1c8d68 (diff)
parentece8ff29899bba23877d7ff5adb6d7c94d2e464c (diff)
Merge branch 'feature/upstream' into develop
Diffstat (limited to 'src/scanner.vala')
-rw-r--r--src/scanner.vala12
1 files changed, 9 insertions, 3 deletions
diff --git a/src/scanner.vala b/src/scanner.vala
index 745b779..01e77e2 100644
--- a/src/scanner.vala
+++ b/src/scanner.vala
@@ -925,8 +925,8 @@ public class Scanner : Object
"Automatic Document Feeder",
Sane.I18N ("Automatic Document Feeder"),
"ADF",
- "Automatic Document Feeder(left aligned)", /* Seen in the proprietary brother3 driver */
"Automatic Document Feeder(centrally aligned)", /* Seen in the proprietary brother3 driver */
+ "Automatic Document Feeder(left aligned)", /* Seen in the proprietary brother3 driver */
"ADF Simplex" /* Samsung unified driver. LP: # 892915 */
};
@@ -1140,7 +1140,7 @@ public class Scanner : Object
set_fixed_or_int_option (handle, option, index, job.dpi, out job.dpi);
option = get_option_by_name (handle, Sane.NAME_SCAN_Y_RESOLUTION, out index);
}
- else
+ else
option = get_option_by_name (handle, Sane.NAME_SCAN_RESOLUTION, out index);
if (option == null) /* #161 Lexmark CX310dn Duplex */
option = get_option_by_name (handle, "scan-resolution", out index);
@@ -1172,11 +1172,17 @@ public class Scanner : Object
else
set_option_to_max (handle, option, index);
}
- if (job.page_width == 0) /* #90 Fix automatic mode for Epson scanners */
+ 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);
+
+ /* #264 Enable automatic document size for Brother scanners */
+ option = get_option_by_name (handle, "AutoDocumentSize", out index);
+ if (option != null)
+ set_bool_option (handle, option, index, true, null);
}
/* Set page size */
option = get_option_by_name (handle, Sane.NAME_PAGE_WIDTH, out index);