The duplex tag is only sent to the device if the device supports AdfDuplex.

merge-requests/463/merge
thierry1970 2020-05-06 10:44:31 +02:00
rodzic 9b3d7dc8b6
commit c9fdb62060
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -169,7 +169,7 @@ escl_newjob (capabilities_t *scanner, const ESCL_Device *device, SANE_Status *st
}
else
format_ext = f_ext;
if(scanner->source > PLATEN) {
if(scanner->source > PLATEN && scanner->Sources[ADFDUPLEX]) {
snprintf(duplex_mode, sizeof(duplex_mode),
" <scan:Duplex>%s</scan:Duplex>",
scanner->source == ADFDUPLEX ? "true" : "false");