From d029990209aa74ef25a0ddaf8c3b01dafcb638dc Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Thu, 5 Feb 2009 02:44:56 -0400 Subject: Create bound scopes for locating the total expr. --- src/output.cc | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src') 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; } -- cgit v1.2.3