From df4595a2b8e0f837dfbe1b1123aa80990db9b992 Mon Sep 17 00:00:00 2001 From: JP Rosevear Date: Tue, 4 Mar 2003 19:59:21 +0000 Subject: Partially Fixes #23606 (from Jack Jia ) 2003-03-04 JP Rosevear Partially Fixes #23606 (from Jack Jia ) * gui/dialogs/schedule-page.c (update_time): handle no end date if the start is date only * gui/dialogs/event-page.c (update_time): ditto svn path=/trunk/; revision=20146 --- calendar/gui/dialogs/schedule-page.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'calendar/gui/dialogs/schedule-page.c') diff --git a/calendar/gui/dialogs/schedule-page.c b/calendar/gui/dialogs/schedule-page.c index b062088bc8..97029704a2 100644 --- a/calendar/gui/dialogs/schedule-page.c +++ b/calendar/gui/dialogs/schedule-page.c @@ -236,7 +236,12 @@ update_time (SchedulePage *spage, CalComponentDateTime *start_date, CalComponent } start_tt = *start_date->value; - end_tt = *end_date->value; + if (!end_date->value && start_tt.is_date) { + end_tt = start_tt; + icaltime_adjust (&end_tt, 1, 0, 0, 0); + } else { + end_tt = *end_date->value; + } /* If the end zone is not the same as the start zone, we convert it. */ priv->zone = start_zone; -- cgit v1.2.3