2008-09-02 Alejandro Pinheiro <apinheiro@igalia.com>
authorAlejandro Piñeiro <apinheiro@igalia.com>
Tue, 2 Sep 2008 16:16:19 +0000 (16:16 +0000)
committerAlejandro Piñeiro <apinheiro@igalia.com>
Tue, 2 Sep 2008 16:16:19 +0000 (16:16 +0000)
* src/hildon-date-selector.c
(hildon_date_selector_select_current_date): fix the day range check
as it failed using the last day of the current month
Fixes NB#88023

ChangeLog
src/hildon-date-selector.c

index b6ae0aa..bf73f3e 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,4 +1,11 @@
-2008-08-28  Alejandro Pinheiro  <apinheiro@igalia.com>
+2008-09-02  Alejandro Pinheiro  <apinheiro@igalia.com>
+
+       * src/hildon-date-selector.c
+       (hildon_date_selector_select_current_date): fix the day range check
+       as it failed using the last day of the current month
+       Fixes NB#88023
+
+2008-09-02  Alejandro Pinheiro  <apinheiro@igalia.com>
 
        * src/hildon-touch-selector.c
        (hildon_touch_selector_get_num_columns): added a parameter validation
index 4a55daa..3e0888d 100644 (file)
@@ -647,7 +647,7 @@ hildon_date_selector_select_current_date (HildonDateSelector * selector,
   g_return_val_if_fail (month >= 0 && month < 12, FALSE);
 
   num_days = _month_days (month, year);
-  g_return_val_if_fail (day > 0 && day < num_days, FALSE);
+  g_return_val_if_fail (day > 0 && day <= num_days, FALSE);
 
 
   gtk_tree_model_iter_nth_child (selector->priv->year_model, &iter, NULL,