[sane-devel] patch for xscanimage bugnr. 300251, upload went wrong
gerard klaver
gerard at gkall.hobby.nl
Sun Oct 5 15:07:44 BST 2003
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
-------------- next part --------------
--- 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);
More information about the sane-devel
mailing list