diff options
author | JP Rosevear <jpr@ximian.com> | 2003-03-05 03:59:21 +0800 |
---|---|---|
committer | JP Rosevear <jpr@src.gnome.org> | 2003-03-05 03:59:21 +0800 |
commit | df4595a2b8e0f837dfbe1b1123aa80990db9b992 (patch) | |
tree | 58c7448efe9ead085c86d0b622b515ccb7b3ac57 /calendar/gui/dialogs/schedule-page.c | |
parent | ae7622009e35515cf78e2d5ccbbb0e14b94b3f30 (diff) | |
download | gsoc2013-evolution-df4595a2b8e0f837dfbe1b1123aa80990db9b992.tar.gz gsoc2013-evolution-df4595a2b8e0f837dfbe1b1123aa80990db9b992.tar.zst gsoc2013-evolution-df4595a2b8e0f837dfbe1b1123aa80990db9b992.zip |
Partially Fixes #23606 (from Jack Jia <jack.jia@sun.com>)
2003-03-04 JP Rosevear <jpr@ximian.com>
Partially Fixes #23606 (from Jack Jia <jack.jia@sun.com>)
* 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
Diffstat (limited to 'calendar/gui/dialogs/schedule-page.c')
-rw-r--r-- | calendar/gui/dialogs/schedule-page.c | 7 |
1 files changed, 6 insertions, 1 deletions
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; |