From 2ecf94cf3a22c80ca22a4b1cef1fac6c950695f4 Mon Sep 17 00:00:00 2001 From: Kidd Wang Date: Fri, 23 Apr 2004 07:04:33 +0000 Subject: If the week view has no spans, there is no visible events in the view. * calendar/ea-week-view.c: (ea_week_view_get_n_children): If the week view has no spans, there is no visible events in the view. svn path=/trunk/; revision=25596 --- a11y/calendar/ea-week-view.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'a11y/calendar/ea-week-view.c') diff --git a/a11y/calendar/ea-week-view.c b/a11y/calendar/ea-week-view.c index 966ec49b28..23e6e649c3 100644 --- a/a11y/calendar/ea-week-view.c +++ b/a11y/calendar/ea-week-view.c @@ -206,6 +206,10 @@ ea_week_view_get_n_children (AtkObject *accessible) EWeekViewEvent *event; EWeekViewEventSpan *span; + /* If week_view->spans == NULL, there is no visible events. */ + if (!week_view->spans) + break; + event = &g_array_index (week_view->events, EWeekViewEvent, event_index); if (!event) -- cgit