diff options
author | Frederic Culot <calcurse@culot.org> | 2006-12-19 10:29:36 +0000 |
---|---|---|
committer | Frederic Culot <calcurse@culot.org> | 2006-12-19 10:29:36 +0000 |
commit | 8d7bad58812fd9eb39a736fb877baf7919ad4e62 (patch) | |
tree | 113a54e8127128063c9ff48420f9293ea7122ed1 /src | |
parent | 6e498cb9f2b5984d6b448b8c59ffa7941bc0e8fe (diff) | |
download | calcurse-8d7bad58812fd9eb39a736fb877baf7919ad4e62.tar.gz calcurse-8d7bad58812fd9eb39a736fb877baf7919ad4e62.zip |
bugfix in day_edit_item(): end time does not change if start time is edited
Diffstat (limited to 'src')
-rwxr-xr-x | src/day.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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 { |