Create bound scopes for locating the total expr.

This commit is contained in:
John Wiegley 2009-02-05 02:44:56 -04:00
parent 4854cead4f
commit d029990209

View file

@ -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;
}