commit 2071dcb3bfa317e643a134bad0743f74b4d7da2f
parent a0992ab6b44f2a1136abf345d9e58f73a6d4ca6d
Author: Jacob R. Edwards <jacob@jacobedwards.org>
Date: Sun, 17 Mar 2024 16:13:30 -0700
Fix criteria for displaying total row
It should be displayed if there are two or more columns, regardless
of whether the second column has an end time.
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/pages/main.c b/pages/main.c
@@ -273,7 +273,7 @@ printtimes(struct pagedata *pd, struct timesheet *times)
return status;
if (times->set & EndTimeFlag &&
- (times->next && times->next->set & EndTimeFlag)) {
+ (times->next && times->next->set & StartTimeFlag)) {
if ((status = khtml_elem(&pd->html, KELEM_TFOOT)) != KCGI_OK ||
(status = khtml_elem(&pd->html, KELEM_TR)) != KCGI_OK ||
(status = printtotal(pd, times)) != KCGI_OK ||