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:
Alexander Pevzner
2024-11-19 11:47:27 +03:00
parent 25bb101ea0
commit 02f19226be
-3
View File
@@ -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];