[evolution] Bug #588959 - Expanding appointment crashes Evolution



commit 012a34614326e676168581ae69b605fd167363af
Author: Vibha Yadav <yvibha suse com>
Date:   Fri Oct 19 12:35:08 2012 +0200

    Bug #588959 - Expanding appointment crashes Evolution

 calendar/gui/e-day-view.c |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/calendar/gui/e-day-view.c b/calendar/gui/e-day-view.c
index a389b99..d6b3fbb 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;



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]