diff options
author | John Wiegley <johnw@newartisans.com> | 2017-12-30 12:52:36 -0800 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2017-12-30 12:52:36 -0800 |
commit | 7d27992d3938541891dd2f4fc67b2f0d7ad554b1 (patch) | |
tree | ecefe3d1e1f1f6f0db237c33b00d4c5d52298322 /src/report.h | |
parent | edbde4b214fbe7750ec41056bfa1637644bad243 (diff) | |
download | fork-ledger-7d27992d3938541891dd2f4fc67b2f0d7ad554b1.tar.gz fork-ledger-7d27992d3938541891dd2f4fc67b2f0d7ad554b1.tar.bz2 fork-ledger-7d27992d3938541891dd2f4fc67b2f0d7ad554b1.zip |
Be a bit more defensive when calculating the budget
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 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) ? " |