]> gitweb.hhaalo.de Git - sane-kds-s2000w-net.git/commitdiff
fix reset enable cropping image option
authorBastian Dehn <hhaalo@arcor.de>
Sun, 16 Feb 2025 12:29:37 +0000 (13:29 +0100)
committerBastian Dehn <hhaalo@arcor.de>
Sun, 16 Feb 2025 12:29:37 +0000 (13:29 +0100)
src/kds_s2000w_handler_opts.c

index 6f2a1b2958bf49427b0649627c641526b912f891..afc24741291c67fc02538ec998999ceeac160b5a 100644 (file)
@@ -428,6 +428,9 @@ void kds_s2000w_handler_opts_set_option(handler* h, uint32_t option, void* value
                        _kds_s2000w_handler_opts_set_option_to_default(h);
                        _kds_s2000w_handler_opts_set_autostart_on(h);
 
+                       SANE_Option_Descriptor* cropping_image = kds_s2000w_option_descriptors_get(32);
+                       cropping_image->cap |= SANE_CAP_SOFT_SELECT;
+
                        if (info != NULL)
                                *info = RELOAD_OPTIONS | RELOAD_PARAMS;
                        return;