summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJörg Frings-Fürst <debian@jff.email>2021-09-25 07:49:07 +0200
committerJörg Frings-Fürst <debian@jff.email>2021-09-25 07:49:07 +0200
commitb06171027dedb1591d5a1c5a62c61de89446739b (patch)
tree44dc1d0a468e27252b34cd7b8d06f071fc420f3b /src
parent383626437ca8f9d26518408719b5d778e696eecd (diff)
New upstream version 40.5upstream/40.5
Diffstat (limited to 'src')
-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);