diff options
author | John Wiegley <johnw@newartisans.com> | 2009-02-05 02:44:56 -0400 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2009-02-05 02:45:29 -0400 |
commit | d029990209aa74ef25a0ddaf8c3b01dafcb638dc (patch) | |
tree | e7f0399ccaaa9a31c41d55a17d41966910c0e5b5 /src | |
parent | 4854cead4f4793a1e9b5c663afaedaab07cbcf20 (diff) | |
download | fork-ledger-d029990209aa74ef25a0ddaf8c3b01dafcb638dc.tar.gz fork-ledger-d029990209aa74ef25a0ddaf8c3b01dafcb638dc.tar.bz2 fork-ledger-d029990209aa74ef25a0ddaf8c3b01dafcb638dc.zip |
Create bound scopes for locating the total expr.
Diffstat (limited to 'src')
-rw-r--r-- | src/output.cc | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/output.cc b/src/output.cc index f833b722..da1f4bc5 100644 --- a/src/output.cc +++ b/src/output.cc @@ -199,10 +199,12 @@ bool format_accounts::disp_subaccounts_p(account_t& account, if (! should_display(*pair.second)) continue; - call_scope_t args(*pair.second); + bind_scope_t bound_scope(report, *pair.second); + call_scope_t args(bound_scope); result = report.get_total_expr(args); if (! computed) { - call_scope_t args(account); + bind_scope_t account_scope(report, account); + call_scope_t args(account_scope); acct_total = report.get_total_expr(args); computed = true; } |