escl: fix version job.

251-scanner-canon-mf110-910-series-is-not-supported
thierry1970 2022-05-11 15:23:34 +02:00
rodzic 6b30245844
commit df048b16f0
1 zmienionych plików z 2 dodań i 1 usunięć

Wyświetl plik

@ -46,7 +46,7 @@ struct downloading
static const char settings[] =
"<?xml version=\"1.0\" encoding=\"UTF-8\"?>" \
"<scan:ScanSettings xmlns:pwg=\"http://www.pwg.org/schemas/2010/12/sm\" xmlns:scan=\"http://schemas.hp.com/imaging/escl/2011/05/03\">" \
" <pwg:Version>2.0</pwg:Version>" \
" <pwg:Version>%.2f</pwg:Version>" \
" <pwg:ScanRegions>" \
" <pwg:ScanRegion>" \
" <pwg:ContentRegionUnits>escl:ThreeHundredthsOfInches</pwg:ContentRegionUnits>" \
@ -266,6 +266,7 @@ escl_newjob (capabilities_t *scanner, const ESCL_Device *device, SANE_Status *st
}
}
snprintf(cap_data, sizeof(cap_data), settings,
device->version,
scanner->caps[scanner->source].height,
scanner->caps[scanner->source].width,
off_x,