mirror of
https://anongit.gentoo.org/git/repo/gentoo.git
synced 2025-06-14 17:12:43 +02:00
Signed-off-by: Chris Mayo <aklhfex@gmail.com> Closes: https://github.com/gentoo/gentoo/pull/34596 Signed-off-by: Florian Schmaus <flow@gentoo.org>
20 lines
919 B
Diff
20 lines
919 B
Diff
--- a/lib/Gscan2pdf/Dialog/Scan/Image_Sane.pm
|
|
+++ b/lib/Gscan2pdf/Dialog/Scan/Image_Sane.pm
|
|
@@ -295,6 +295,17 @@ sub _initialise_options { ## no critic (ProhibitExcessComplexity)
|
|
if ( $opt->{constraint}{quant} ) {
|
|
$step = $opt->{constraint}{quant};
|
|
}
|
|
+ if ( $opt->{constraint}{min} > $opt->{constraint}{max} ) {
|
|
+ $logger->error(
|
|
+ sprintf __(
|
|
+"Ignoring scan option '%s', minimum range (%s) > maximum (%s)"
|
|
+ ),
|
|
+ $opt->{name},
|
|
+ $opt->{constraint}{min},
|
|
+ $opt->{constraint}{max}
|
|
+ );
|
|
+ next;
|
|
+ }
|
|
$widget =
|
|
Gtk3::SpinButton->new_with_range( $opt->{constraint}{min},
|
|
$opt->{constraint}{max}, $step );
|