From fa46f3442d2fa9e462c14564aecbfe34c16d18b2 Mon Sep 17 00:00:00 2001 From: Craig Earls Date: Sun, 24 Aug 2014 18:40:00 -0700 Subject: fix rare bug in balance report output if the budgeted amount happens to be zero. See emails in group from John Rakestraw circa November 2011 --- 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 c500fb9b..acfd40db 100644 --- a/src/report.h +++ b/src/report.h @@ -465,8 +465,8 @@ public: " 12 + 1 + 12 + 1 + 12, true, color))" " %(ansify_if(" " justify((get_at(display_total, 1) ? " - " (100% * scrub(get_at(display_total, 0))) / " - " -scrub(get_at(display_total, 1)) : 0), " + " (100% * quantity(scrub(get_at(display_total, 0)))) / " + " -quantity(scrub(get_at(display_total, 1))) : 0), " " 5, -1, true, false)," " magenta if (color and get_at(display_total, 1) and " " (abs(quantity(scrub(get_at(display_total, 0))) / " -- cgit v1.2.3