From 012a34614326e676168581ae69b605fd167363af Mon Sep 17 00:00:00 2001 From: Vibha Yadav Date: Fri, 19 Oct 2012 12:35:08 +0200 Subject: Bug #588959 - Expanding appointment crashes Evolution --- calendar/gui/e-day-view.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/calendar/gui/e-day-view.c b/calendar/gui/e-day-view.c index a389b99f09..d6b3fbb05c 100644 --- a/calendar/gui/e-day-view.c +++ b/calendar/gui/e-day-view.c @@ -6430,6 +6430,9 @@ e_day_view_on_text_item_event (GnomeCanvasItem *item, break; pevent = tooltip_get_view_event (day_view, day, event_num); + if (!pevent) + break; + g_object_set_data (G_OBJECT (item), "event-num", GINT_TO_POINTER (event_num)); g_object_set_data (G_OBJECT (item), "event-day", GINT_TO_POINTER (day)); @@ -6459,6 +6462,8 @@ e_day_view_on_text_item_event (GnomeCanvasItem *item, gint day = GPOINTER_TO_INT (g_object_get_data ((GObject *) item, "event-day")); pevent = tooltip_get_view_event (day_view, day, event_num); + if (!pevent) + break; pevent->x = ((GdkEventMotion *) event)->x_root; pevent->y = ((GdkEventMotion *) event)->y_root; -- cgit v1.2.3