diff options
-rw-r--r-- | calendar/ChangeLog | 7 | ||||
-rw-r--r-- | calendar/gui/e-week-view.c | 4 |
2 files changed, 9 insertions, 2 deletions
diff --git a/calendar/ChangeLog b/calendar/ChangeLog index 30a25f7c37..ce4db1d611 100644 --- a/calendar/ChangeLog +++ b/calendar/ChangeLog @@ -1,5 +1,12 @@ 2007-08-23 Milan Crha <mcrha@redhat.com> + ** 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 <mcrha@redhat.com> + ** Fix for bug #272167 * gui/e-cal-popup.c: (e_cal_popup_target_new_source): 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; |