[gnome-calendar] year-view: fix range marking for a single day



commit 032b2fab55c97cabea08fc79ddb2eccc7f77a1c8
Author: Erick Pérez Castellanos <erick red gmail com>
Date:   Thu Jan 22 22:05:58 2015 -0500

    year-view: fix range marking for a single day

 src/gcal-year-view.c |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)
---
diff --git a/src/gcal-year-view.c b/src/gcal-year-view.c
index 22c1c44..3400922 100644
--- a/src/gcal-year-view.c
+++ b/src/gcal-year-view.c
@@ -212,7 +212,7 @@ update_sidebar (GcalYearView *year_view)
       priv->start_selected_date->month = selected_data.start_month + 1;
       priv->start_selected_date->year = priv->date->year;
 
-      priv->end_selected_date->day = selected_data.end_day + 1;
+      priv->end_selected_date->day = selected_data.end_day;
       priv->end_selected_date->month = selected_data.end_month + 1;
       priv->end_selected_date->year = priv->date->year;
       priv->end_selected_date->hour = 23;
@@ -226,7 +226,6 @@ update_sidebar (GcalYearView *year_view)
       priv->start_selected_date->minute = 0;
 
       *(priv->end_selected_date) = *(priv->current_date);
-      priv->end_selected_date->day += 1;
       priv->end_selected_date->hour = 23;
       priv->end_selected_date->minute = 59;
       *(priv->end_selected_date) = icaltime_normalize (*(priv->end_selected_date));


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