summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFrederic Culot <calcurse@culot.org>2006-12-19 10:29:36 +0000
committerFrederic Culot <calcurse@culot.org>2006-12-19 10:29:36 +0000
commit8d7bad58812fd9eb39a736fb877baf7919ad4e62 (patch)
tree113a54e8127128063c9ff48420f9293ea7122ed1
parent6e498cb9f2b5984d6b448b8c59ffa7941bc0e8fe (diff)
downloadcalcurse-8d7bad58812fd9eb39a736fb877baf7919ad4e62.tar.gz
calcurse-8d7bad58812fd9eb39a736fb877baf7919ad4e62.zip
bugfix in day_edit_item(): end time does not change if start time is edited
-rwxr-xr-xsrc/day.c3
1 files changed, 2 insertions, 1 deletions
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 {