epson2: do not call set_color_correction_coefficients where unsupported

merge-requests/1/head
Alessandro Zummo 2010-04-04 17:07:06 +02:00
rodzic 74c0db99eb
commit e75d6e5e0c
1 zmienionych plików z 3 dodań i 1 usunięć

Wyświetl plik

@ -2120,7 +2120,9 @@ sane_start(SANE_Handle handle)
} }
/* ESC m, user defined color correction */ /* ESC m, user defined color correction */
if (correction_userdefined[s->val[OPT_COLOR_CORRECTION].w]) { if (s->hw->cmd->set_color_correction_coefficients
&& correction_userdefined[s->val[OPT_COLOR_CORRECTION].w]) {
status = esci_set_color_correction_coefficients(s, status = esci_set_color_correction_coefficients(s,
s->cct_table); s->cct_table);
if (status != SANE_STATUS_GOOD) if (status != SANE_STATUS_GOOD)