From def8cf720b6bf21b947be2a2de8448a32a1e4286 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Erick=20P=C3=A9rez=20Castellanos?= Date: Thu, 13 Jun 2013 16:52:02 -0400 Subject: [PATCH] gcal-days-grid: fixed corner case in allocation Fixed allocation of events place around midnight. --- src/gcal-days-grid.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gcal-days-grid.c b/src/gcal-days-grid.c index 6cb39342..c2a74437 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);