2006-09-21 Michael Dominic Kostrzewa <michael.kostrzewa@nokia.com>
authorMichael Dominic Kostrzewa <michael.kostrzewa@nokia.com>
Thu, 21 Sep 2006 12:34:40 +0000 (12:34 +0000)
committerMichael Dominic Kostrzewa <michael.kostrzewa@nokia.com>
Thu, 21 Sep 2006 12:34:40 +0000 (12:34 +0000)
* hildon-widgets/hildon-number-editor.c:
(hildon_number_editor_validate_value): Modified the condition
for checking if the inputted value is 0 when range minimun is
positive. Fixes #NB30734.

ChangeLog
hildon-widgets/hildon-number-editor.c

index 16081c9..4d8c399 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2006-09-21  Michael Dominic Kostrzewa  <michael.kostrzewa@nokia.com> 
+
+       * hildon-widgets/hildon-number-editor.c:
+       (hildon_number_editor_validate_value): Modified the condition
+       for checking if the inputted value is 0 when range minimun is
+       positive. Fixes #NB30734.
+
 2006-09-21  Fernando Herrera  <fernando.herrera-de-las-heras@nokia.com>
 
        * hildon-widgets/hildon-get-password-dialog.c:
@@ -17,7 +24,8 @@
        method is set. Fixes #NB37467. 
 
        * hildon-widgets/hildon-name-password-dialog.c: Fixing the way the
-       password entry is being accessed. Fixes #MB767.
+       password entry is being accessed. Fixes #MB767. Using a patch by
+       Lorenzo Gil Sanchez.
 
 2006-09-19  Michael Dominic Kostrzewa  <michael.kostrzewa@nokia.com> 
 
index 84ab06d..c42aafb 100644 (file)
@@ -573,7 +573,7 @@ hildon_number_editor_validate_value(HildonNumberEditor *editor, gboolean allow_i
                   negative and value is positive.
                 * If inputted value is below minimum and minimum
                   is negative or minumum positive and value
-                  negative.
+                  negative or zero.
                In all other cases situation can be fixed just by
                adding new numbers to the string.
              */
@@ -582,7 +582,7 @@ hildon_number_editor_validate_value(HildonNumberEditor *editor, gboolean allow_i
                 error_code = MAXIMUM_VALUE_EXCEED;
                 fixup_value = priv->end;
             }
-            else if (value < priv->start && (priv->start < 0 || (priv->start >= 0 && value < 0)))
+            else if (value < priv->start && (priv->start < 0 || (priv->start >= 0 && value <= 0)))
             {
                 error_code = MINIMUM_VALUE_EXCEED;
                 fixup_value = priv->start;