diff options
author | Seth Alves <alves@src.gnome.org> | 2000-05-09 02:39:16 +0800 |
---|---|---|
committer | Seth Alves <alves@src.gnome.org> | 2000-05-09 02:39:16 +0800 |
commit | 465b7b48eeca4921cf82cb6432cfbd9a4acca3d2 (patch) | |
tree | fcb4f7591c9030fe6ee98c789778ccc656c369a9 | |
parent | 8160d7388e27c6f97e3ed96bc5d61fbf20ff2d16 (diff) | |
download | gsoc2013-evolution-465b7b48eeca4921cf82cb6432cfbd9a4acca3d2.tar gsoc2013-evolution-465b7b48eeca4921cf82cb6432cfbd9a4acca3d2.tar.gz gsoc2013-evolution-465b7b48eeca4921cf82cb6432cfbd9a4acca3d2.tar.bz2 gsoc2013-evolution-465b7b48eeca4921cf82cb6432cfbd9a4acca3d2.tar.lz gsoc2013-evolution-465b7b48eeca4921cf82cb6432cfbd9a4acca3d2.tar.xz gsoc2013-evolution-465b7b48eeca4921cf82cb6432cfbd9a4acca3d2.tar.zst gsoc2013-evolution-465b7b48eeca4921cf82cb6432cfbd9a4acca3d2.zip |
call e_day_view_stop_editing_event here to avoid a divide by zero a bit
* gui/e-day-view.c (e_day_view_on_delete_appointment): call
e_day_view_stop_editing_event here to avoid a divide by zero
a bit further on. i'm not sure if this is the best fix for this.
svn path=/trunk/; revision=2922
-rw-r--r-- | calendar/ChangeLog | 6 | ||||
-rw-r--r-- | calendar/gui/e-day-view.c | 6 |
2 files changed, 12 insertions, 0 deletions
diff --git a/calendar/ChangeLog b/calendar/ChangeLog index 29a917a70c..9173314f41 100644 --- a/calendar/ChangeLog +++ b/calendar/ChangeLog @@ -1,3 +1,9 @@ +2000-05-08 Seth Alves <alves@hungry.com> + + * gui/e-day-view.c (e_day_view_on_delete_appointment): call + e_day_view_stop_editing_event here to avoid a divide by zero + a bit further on. i'm not sure if this is the best fix for this. + 2000-05-08 Federico Mena Quintero <federico@helixcode.com> * pcs/cal-backend.h (CalBackendClass): CalBackendClass now is just diff --git a/calendar/gui/e-day-view.c b/calendar/gui/e-day-view.c index 43db86972f..15b0ea805f 100644 --- a/calendar/gui/e-day-view.c +++ b/calendar/gui/e-day-view.c @@ -2376,6 +2376,9 @@ e_day_view_on_delete_appointment (GtkWidget *widget, gpointer data) if (event == NULL) return; + if (day_view->editing_event_day >= 0) + e_day_view_stop_editing_event (day_view); + gnome_calendar_remove_object (day_view->calendar, event->ico); } @@ -4284,6 +4287,9 @@ e_day_view_get_event_position (EDayView *day_view, start_col = event->start_row_or_col; num_columns = event->num_columns; + if (cols_in_row == 0) + return FALSE; + /* If the event is being resize, use the resize position. */ if (day_view->resize_drag_pos != E_DAY_VIEW_POS_NONE && day_view->resize_event_day == day |