aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVibha Yadav <yvibha@suse.com>2012-10-19 18:35:08 +0800
committerMilan Crha <mcrha@redhat.com>2012-10-19 18:35:08 +0800
commit012a34614326e676168581ae69b605fd167363af (patch)
tree3fb45a61711cbbb9d078091dd62f7a854bccc7a6
parentbf8eaa185a845fc1118b3ebd9ad474a0de58abf6 (diff)
downloadgsoc2013-evolution-012a34614326e676168581ae69b605fd167363af.tar.gz
gsoc2013-evolution-012a34614326e676168581ae69b605fd167363af.tar.zst
gsoc2013-evolution-012a34614326e676168581ae69b605fd167363af.zip
Bug #588959 - Expanding appointment crashes Evolution
-rw-r--r--calendar/gui/e-day-view.c5
1 files changed, 5 insertions, 0 deletions
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;