Merge branch 'escl_fix_option_without_poppler' into 'master'

escl: Fix option without poppler.

See merge request sane-project/backends!820
merge-requests/569/merge
ThierryFR 2024-01-11 18:23:04 +00:00
commit 77059fe3d4
1 zmienionych plików z 3 dodań i 3 usunięć

Wyświetl plik

@ -202,11 +202,11 @@ find_valor_of_array_variables(xmlNode *node, capabilities_t *scanner, int type)
const char *name = (const char *)node->name;
if (strcmp(name, "ColorMode") == 0) {
const char *color = (SANE_String_Const)xmlNodeGetContent(node);
if (type == PLATEN
#if HAVE_POPPLER_GLIB
|| strcmp(color, "BlackAndWhite1")
if (type == PLATEN || strcmp(color, "BlackAndWhite1"))
#else
if (strcmp(color, "BlackAndWhite1"))
#endif
)
scanner->caps[type].ColorModes = char_to_array(scanner->caps[type].ColorModes, &scanner->caps[type].ColorModesSize, (SANE_String_Const)xmlNodeGetContent(node), 1);
}
else if (strcmp(name, "ContentType") == 0)