aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/gui/e-calendar-view.c
diff options
context:
space:
mode:
authorSrinivasa Ragavan <sragavan@novell.com>2008-01-12 00:38:00 +0800
committerSrinivasa Ragavan <sragavan@src.gnome.org>2008-01-12 00:38:00 +0800
commitc5977a1fef7af4bdd3ed2f878e2fde26565d4bdd (patch)
treed805047bc30491f64f23a88c6a2c6f247e4563dd /calendar/gui/e-calendar-view.c
parent16ed932ab391d318fbfd1ecf042573b91f6ecfb2 (diff)
downloadgsoc2013-evolution-c5977a1fef7af4bdd3ed2f878e2fde26565d4bdd.tar.gz
gsoc2013-evolution-c5977a1fef7af4bdd3ed2f878e2fde26565d4bdd.tar.zst
gsoc2013-evolution-c5977a1fef7af4bdd3ed2f878e2fde26565d4bdd.zip
** Fix for bug #508731
2008-01-11 Srinivasa Ragavan <sragavan@novell.com> ** 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
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;