diff options
author | Craig Earls <enderw88@gmail.com> | 2014-08-24 18:40:00 -0700 |
---|---|---|
committer | Craig Earls <enderw88@gmail.com> | 2014-08-24 18:40:00 -0700 |
commit | fa46f3442d2fa9e462c14564aecbfe34c16d18b2 (patch) | |
tree | bd18e0508f4dfad13a5b557eb420c20d885a61e2 /src/report.h | |
parent | ce3102923658ce53194832b524d455b24a38af3f (diff) | |
download | fork-ledger-fa46f3442d2fa9e462c14564aecbfe34c16d18b2.tar.gz fork-ledger-fa46f3442d2fa9e462c14564aecbfe34c16d18b2.tar.bz2 fork-ledger-fa46f3442d2fa9e462c14564aecbfe34c16d18b2.zip |
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
Diffstat (limited to 'src/report.h')
-rw-r--r-- | src/report.h | 4 |
1 files changed, 2 insertions, 2 deletions
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))) / " |