summaryrefslogtreecommitdiff
path: root/src/report.h
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2010-06-06 06:05:51 -0400
committerJohn Wiegley <johnw@newartisans.com>2010-06-06 06:05:51 -0400
commit4197c8851120e5c5ac7426cdca209a49049e9363 (patch)
tree4c5c55bc9870b5e3c5d76282711c4f4880175655 /src/report.h
parent41e4aea7595d3b9009bece4902d9efdb8ba00e6c (diff)
downloadfork-ledger-4197c8851120e5c5ac7426cdca209a49049e9363.tar.gz
fork-ledger-4197c8851120e5c5ac7426cdca209a49049e9363.tar.bz2
fork-ledger-4197c8851120e5c5ac7426cdca209a49049e9363.zip
Corrected implementation of --percent
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__