[gnome-calendar/ui-rewrite] gcal-days-grid: fixed corner case in allocation



commit 2ffbf661ef7746738121a28d67fccd4b8ee967bf
Author: Erick Pérez Castellanos <erick red gmail com>
Date:   Thu Jun 13 16:52:02 2013 -0400

    gcal-days-grid: fixed corner case in allocation
    
    Fixed allocation of events place around midnight.

 src/gcal-days-grid.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/gcal-days-grid.c b/src/gcal-days-grid.c
index 6cb3934..c2a7443 100644
--- a/src/gcal-days-grid.c
+++ b/src/gcal-days-grid.c
@@ -909,7 +909,7 @@ gcal_days_grid_place (GcalDaysGrid *all_day,
   info->widget = widget;
   info->hidden = FALSE;
   info->start_cell = start_cell;
-  info->end_cell = end_cell;
+  info->end_cell = end_cell == 0 ? start_cell + 1 : end_cell;
   info->sub_column = 0;
   children_link->data = g_list_insert_sorted (column, info, compare_child_info);
 


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