[gnome-calendar/ui-rewrite] month-view: fixed wrong day selection



commit bd3cad612a531848d34515cc9fbbc33e769aae4f
Author: Georges Basile Stavracas Neto <georges stavracas gmail com>
Date:   Fri Oct 3 00:38:19 2014 -0300

    month-view: fixed wrong day selection

 src/gcal-month-view.c |    4 +---
 1 files changed, 1 insertions(+), 3 deletions(-)
---
diff --git a/src/gcal-month-view.c b/src/gcal-month-view.c
index 2663d67..530a2ad 100644
--- a/src/gcal-month-view.c
+++ b/src/gcal-month-view.c
@@ -788,9 +788,7 @@ gcal_month_view_button_press (GtkWidget      *widget,
 
   priv->clicked_cell = 7 * ( floor ( (y - (lines_gap_for_5 * v_block))  / (v_block) )) + floor (x / (width / 
7));
 
-  if (priv->clicked_cell <
-      icaltime_days_in_month (priv->date->month,
-                              priv->date->year))
+  if (priv->clicked_cell < days)
     {
       priv->start_mark_cell = priv->clicked_cell;
     }


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]