From 8d7bad58812fd9eb39a736fb877baf7919ad4e62 Mon Sep 17 00:00:00 2001 From: Frederic Culot Date: Tue, 19 Dec 2006 10:29:36 +0000 Subject: bugfix in day_edit_item(): end time does not change if start time is edited --- src/day.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/day.c b/src/day.c index bf907d5..d0e79e6 100755 --- a/src/day.c +++ b/src/day.c @@ -1,4 +1,4 @@ -/* $calcurse: day.c,v 1.14 2006/12/15 15:29:16 culot Exp $ */ +/* $calcurse: day.c,v 1.15 2006/12/19 10:29:36 culot Exp $ */ /* * Calcurse - text-based organizer @@ -478,6 +478,7 @@ void day_edit_item(int year, int month, int day, int item_num, int colr) free(timestr); newtime = update_time_in_date(p->start, hr, mn); if (newtime < p->start + p->appt_dur) { + p->appt_dur -= (newtime - p->start); p->start = newtime; valid_date = 1; } else { -- cgit v1.2.3-70-g09d2