From c5977a1fef7af4bdd3ed2f878e2fde26565d4bdd Mon Sep 17 00:00:00 2001 From: Srinivasa Ragavan Date: Fri, 11 Jan 2008 16:38:00 +0000 Subject: ** Fix for bug #508731 2008-01-11 Srinivasa Ragavan ** Fix for bug #508731 * gui/e-calendar-view.c: (e_calendar_view_new_appointment_full): Have a safe default, if the values from gconf isn't so nice. svn path=/trunk/; revision=34801 --- calendar/gui/e-calendar-view.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'calendar/gui') diff --git a/calendar/gui/e-calendar-view.c b/calendar/gui/e-calendar-view.c index 3cae08331e..7246ea1534 100644 --- a/calendar/gui/e-calendar-view.c +++ b/calendar/gui/e-calendar-view.c @@ -1923,6 +1923,9 @@ e_calendar_view_new_appointment_full (ECalendarView *cal_view, gboolean all_day, int time_div = calendar_config_get_time_divisions (); int hours, mins; + if (!time_div) /* Possible if your gconf values aren't so nice */ + time_div = 30; + if (time_day_begin (now) == time_day_begin (dtstart)) { /* same day as today */ hours = local.tm_hour; -- cgit