Merge branch 'escl-fix-version-xml-job' into 'master'

escl: fix version job.

See merge request sane-project/backends!734
251-scanner-canon-mf110-910-series-is-not-supported
Ordissimo 2022-05-11 13:42:52 +00:00
commit 8daae197a0
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,