aboutsummaryrefslogtreecommitdiffstats
path: root/calendar
diff options
context:
space:
mode:
Diffstat (limited to 'calendar')
-rw-r--r--calendar/ChangeLog7
-rw-r--r--calendar/gui/e-calendar-view.c3
2 files changed, 10 insertions, 0 deletions
diff --git a/calendar/ChangeLog b/calendar/ChangeLog
index cb95e8f516..e417161b15 100644
--- a/calendar/ChangeLog
+++ b/calendar/ChangeLog
@@ -1,3 +1,10 @@
+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.
+
2008-01-10 Milan Crha <mcrha@redhat.com>
** Fix for bug #457842
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;