summaryrefslogtreecommitdiff
path: root/src/report.h
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2010-06-06 13:04:44 -0400
committerJohn Wiegley <johnw@newartisans.com>2010-06-06 13:04:44 -0400
commite8ffbd6f2fb57f2b65f57f92edf8eb444cc2f71f (patch)
treeb72e9a1454b6721d59e3844d71a91880c94e2cae /src/report.h
parent290cac7b84b60305e185c140645c9bac2ca9fb0e (diff)
parent39f9854e2c1f807f6e9c90d80e1eec2bf9b90017 (diff)
downloadfork-ledger-e8ffbd6f2fb57f2b65f57f92edf8eb444cc2f71f.tar.gz
fork-ledger-e8ffbd6f2fb57f2b65f57f92edf8eb444cc2f71f.tar.bz2
fork-ledger-e8ffbd6f2fb57f2b65f57f92edf8eb444cc2f71f.zip
Merge branch 'next'
Diffstat (limited to 'src/report.h')
-rw-r--r--src/report.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/report.h b/src/report.h
index 99b8781b..e4eaeaaa 100644
--- a/src/report.h
+++ b/src/report.h
@@ -735,7 +735,7 @@ public:
OPTION_(report_t, percent, DO() { // -%
parent->HANDLER(total_)
.set_expr(string("--percent"),
- "is_account&parent&parent.total&percent(total, parent.total)");
+ "((is_account&parent&parent.total)?percent(total, parent.total):0");
});
OPTION__