diff options
-rw-r--r-- | calendar/ChangeLog | 7 | ||||
-rw-r--r-- | calendar/gui/e-day-view.c | 22 |
2 files changed, 18 insertions, 11 deletions
diff --git a/calendar/ChangeLog b/calendar/ChangeLog index d940bb8bb3..0a29876785 100644 --- a/calendar/ChangeLog +++ b/calendar/ChangeLog @@ -1,3 +1,10 @@ +2003-05-16 Rodrigo Moya <rodrigo@ximian.com> + + Fixes #42220 + + * gui/e-day-view.c (e_day_view_finish_resize): hide canvas items and + update internal fields before updating the object. + 2003-05-15 JP Rosevear <jpr@ximian.com> * gui/dialogs/comp-editor.c (comp_editor_finalize): unref the diff --git a/calendar/gui/e-day-view.c b/calendar/gui/e-day-view.c index f6aba9eede..ec27dc79fa 100644 --- a/calendar/gui/e-day-view.c +++ b/calendar/gui/e-day-view.c @@ -4928,6 +4928,17 @@ e_day_view_finish_resize (EDayView *day_view) cal_component_set_dtend (comp, &date); } + gnome_canvas_item_hide (day_view->resize_rect_item); + gnome_canvas_item_hide (day_view->resize_bar_item); + + /* Hide the horizontal bars. */ + day_view->resize_bars_event_day = -1; + day_view->resize_bars_event_num = -1; + gnome_canvas_item_hide (day_view->main_canvas_top_resize_bar_item); + gnome_canvas_item_hide (day_view->main_canvas_bottom_resize_bar_item); + + day_view->resize_drag_pos = E_DAY_VIEW_POS_NONE; + if (cal_component_is_instance (comp)) { CalObjModType mod; @@ -4947,17 +4958,6 @@ e_day_view_finish_resize (EDayView *day_view) } else { g_message ("e_day_view_finish_resize(): Could not update the object!"); } - - gnome_canvas_item_hide (day_view->resize_rect_item); - gnome_canvas_item_hide (day_view->resize_bar_item); - - /* Hide the horizontal bars. */ - day_view->resize_bars_event_day = -1; - day_view->resize_bars_event_num = -1; - gnome_canvas_item_hide (day_view->main_canvas_top_resize_bar_item); - gnome_canvas_item_hide (day_view->main_canvas_bottom_resize_bar_item); - - day_view->resize_drag_pos = E_DAY_VIEW_POS_NONE; g_object_unref (comp); } |