[sane-devel] patch for xscanimage bugnr. 300251, upload went wrong
gerard klaver
gerard@gkall.hobby.nl
Sun, 05 Oct 2003 14:07:44 +0000
--=-VLdjAkS5tdOGkJl2Mvla
Content-Type: text/plain
Content-Transfer-Encoding: 7bit
Hello,
By submitting bugnr. 300251, patch upload went wrong, reason?
I've placed the patch in comment field bugreport and also as attachment
in this email.
--
----------
m.vr.gr.
Gerard Klaver
--=-VLdjAkS5tdOGkJl2Mvla
Content-Disposition: attachment; filename=xscanimage-minmaxgammapref.diff
Content-Type: text/plain; name=xscanimage-minmaxgammapref.diff; charset=ISO-8859-15
Content-Transfer-Encoding: 7bit
--- xscanimage-cvs.c 2003-09-30 17:46:16.000000000 +0000
+++ xscanimage.c 2003-10-05 11:26:17.000000000 +0000
@@ -1351,6 +1351,14 @@
gtk_widget_destroy (dialog);
pref_xscanimage_save ();
+ /* gamma min, max test*/
+ if ( preferences.preview_gamma < 0 || preferences.preview_gamma > 255 )
+ {
+ snprintf (buf, sizeof (buf), "Failed to save, gamma value < 0 or > 255, change value %g",
+ preferences.preview_gamma);
+ gsg_warning (buf);
+ }
+
snprintf (buf, sizeof (buf),
"It is necessary to restart %s for the changes to take effect.",
prog_name);
--=-VLdjAkS5tdOGkJl2Mvla--