From 7d27992d3938541891dd2f4fc67b2f0d7ad554b1 Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Sat, 30 Dec 2017 12:52:36 -0800 Subject: Be a bit more defensive when calculating the budget --- src/report.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/report.h') diff --git a/src/report.h b/src/report.h index 0c68b182..b625d335 100644 --- a/src/report.h +++ b/src/report.h @@ -462,8 +462,8 @@ public: "%(justify(scrub(get_at(display_total, 0)), 12, -1, true, color))" " %(justify(-scrub(get_at(display_total, 1)), 12, " " 12 + 1 + 12, true, color))" - " %(justify(scrub(get_at(display_total, 1) + " - " get_at(display_total, 0)), 12, " + " %(justify(scrub((get_at(display_total, 1) || 0) + " + " (get_at(display_total, 0) || 0)), 12, " " 12 + 1 + 12 + 1 + 12, true, color))" " %(ansify_if(" " justify((get_at(display_total, 1) ? " -- cgit v1.2.3