diff options
Diffstat (limited to 'calendar')
-rw-r--r-- | calendar/gui/e-day-view.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/calendar/gui/e-day-view.c b/calendar/gui/e-day-view.c index 8f09d27a5b..9950da6566 100644 --- a/calendar/gui/e-day-view.c +++ b/calendar/gui/e-day-view.c @@ -4502,7 +4502,10 @@ e_day_view_show_popup_menu (EDayView *day_view, gint day, gint event_num) { - EDayViewEvent *pevent = tooltip_get_view_event (day_view, day, event_num); + EDayViewEvent *pevent = NULL; + + if (event_num >= 0) + pevent = tooltip_get_view_event (day_view, day, event_num); if (pevent && pevent->canvas_item) tooltip_destroy (day_view, pevent->canvas_item); |