gnome-scan r763 - in branches/GNOME_SCAN_0_6: . modules
- From: phsadleder svn gnome org
- To: svn-commits-list gnome org
- Subject: gnome-scan r763 - in branches/GNOME_SCAN_0_6: . modules
- Date: Tue, 13 Jan 2009 09:56:07 +0000 (UTC)
Author: phsadleder
Date: Tue Jan 13 09:56:07 2009
New Revision: 763
URL: http://svn.gnome.org/viewvc/gnome-scan?rev=763&view=rev
Log:
Use minimal step equal to 1.
Modified:
branches/GNOME_SCAN_0_6/ChangeLog
branches/GNOME_SCAN_0_6/modules/gsane-scanner.c
Modified: branches/GNOME_SCAN_0_6/modules/gsane-scanner.c
==============================================================================
--- branches/GNOME_SCAN_0_6/modules/gsane-scanner.c (original)
+++ branches/GNOME_SCAN_0_6/modules/gsane-scanner.c Tue Jan 13 09:56:07 2009
@@ -930,12 +930,12 @@
case G_TYPE_INT:
g_value_set_int (vmin, desc->constraint.range->min);
g_value_set_int (vmax, desc->constraint.range->max);
- g_value_set_int (vstep, desc->constraint.range->quant);
+ g_value_set_int (vstep, MAX(1, desc->constraint.range->quant));
break;
case G_TYPE_DOUBLE:
g_value_set_double (vmin, SANE_UNFIX (desc->constraint.range->min));
g_value_set_double (vmax, SANE_UNFIX (desc->constraint.range->max));
- g_value_set_double (vstep, SANE_UNFIX (desc->constraint.range->quant));
+ g_value_set_double (vstep, MAX(1., SANE_UNFIX (desc->constraint.range->quant)));
break;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]