diff options
Diffstat (limited to 'calendar/gui/e-week-view.c')
-rw-r--r-- | calendar/gui/e-week-view.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/calendar/gui/e-week-view.c b/calendar/gui/e-week-view.c index b2a8ccad2f..97e08fe840 100644 --- a/calendar/gui/e-week-view.c +++ b/calendar/gui/e-week-view.c @@ -1920,8 +1920,6 @@ e_week_view_remove_event_cb (EWeekView *week_view, e_cal_model_free_component_data (event->comp_data); event->comp_data = NULL; - g_array_remove_index (week_view->events, event_num); - /* We leave the span elements in the array, but set the canvas item pointers to NULL. */ for (span_num = 0; span_num < event->num_spans; span_num++) { @@ -1938,6 +1936,8 @@ e_week_view_remove_event_cb (EWeekView *week_view, } } + g_array_remove_index (week_view->events, event_num); + week_view->events_need_layout = TRUE; return TRUE; |