From c08bea18589e973da6c4f8e8d3ff3c840001e8b7 Mon Sep 17 00:00:00 2001 From: Milan Crha Date: Thu, 23 Aug 2007 09:18:07 +0000 Subject: 2007-08-23 mcrha Fix for bug #355864 svn path=/trunk/; revision=34070 --- calendar/ChangeLog | 7 +++++++ calendar/gui/e-week-view.c | 4 ++-- 2 files changed, 9 insertions(+), 2 deletions(-) (limited to 'calendar') diff --git a/calendar/ChangeLog b/calendar/ChangeLog index 30a25f7c37..ce4db1d611 100644 --- a/calendar/ChangeLog +++ b/calendar/ChangeLog @@ -1,3 +1,10 @@ +2007-08-23 Milan Crha + + ** Fix for bug #355864 + + * gui/e-week-view.c: (e_week_view_remove_event_cb): + Better remove array item after done with it, not before. + 2007-08-23 Milan Crha ** Fix for bug #272167 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; -- cgit v1.2.3