gentoo-ebuilds/media-gfx/gscan2pdf/files/gscan2pdf-2.13.2-min_max.patch
Chris Mayo 9847317ef7
media-gfx/gscan2pdf: tiff2ps no longer installed by media-libs/tiff
Signed-off-by: Chris Mayo <aklhfex@gmail.com>
Closes: https://github.com/gentoo/gentoo/pull/34596
Signed-off-by: Florian Schmaus <flow@gentoo.org>
2024-01-03 21:14:18 +01:00

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 );