diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/apoint.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/apoint.c b/src/apoint.c index 427c43f..38b41ae 100644 --- a/src/apoint.c +++ b/src/apoint.c @@ -228,7 +228,7 @@ apoint_add (void) else if (check_time (item_time) == 1) { (void)sscanf (item_time, "%u:%u", &end_h, &end_m); - if (end_h < heures) + if (end_h < heures || ((end_h == heures) && (end_m < minutes))) { apoint_duration = MININSEC - minutes + end_m + (24 + end_h - (heures + 1)) * MININSEC; |