mirror of
https://github.com/openharmony/third_party_sane-airscan.git
synced 2026-06-30 21:17:55 -04:00
The "sane-intent" option cannot be SANE_CAP_INACTIVE
As "*unset*" is always implicitly supported, the never-executing code that marks option inactive if set of supported intents is empty, removed.
This commit is contained in:
@@ -259,9 +259,6 @@ devopt_rebuild_opt_desc (devopt *opt)
|
||||
desc->cap = SANE_CAP_SOFT_SELECT | SANE_CAP_SOFT_DETECT;
|
||||
desc->constraint_type = SANE_CONSTRAINT_STRING_LIST;
|
||||
desc->constraint.string_list = (SANE_String_Const*) opt->sane_scanintents;
|
||||
if (!scanintents) {
|
||||
desc->cap |= SANE_CAP_INACTIVE;
|
||||
}
|
||||
|
||||
/* OPT_SCAN_SOURCE */
|
||||
desc = &opt->desc[OPT_SCAN_SOURCE];
|
||||
|
||||
Reference in New Issue
Block a user