aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/gui/e-calendar-view.c
diff options
context:
space:
mode:
Diffstat (limited to 'calendar/gui/e-calendar-view.c')
-rw-r--r--calendar/gui/e-calendar-view.c3
1 files changed, 3 insertions, 0 deletions
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;