diff options
author | John Wiegley <johnw@newartisans.com> | 2009-02-05 21:18:37 -0400 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2009-02-05 21:20:09 -0400 |
commit | 408b819c6e087593ba61e82b91dda2369ef32f62 (patch) | |
tree | 68456c86187e00355d47c5794008b8226bd000e2 /src/output.cc | |
parent | 7b24e8f8e33049fe533cce2d2d473c6122460954 (diff) | |
download | fork-ledger-408b819c6e087593ba61e82b91dda2369ef32f62.tar.gz fork-ledger-408b819c6e087593ba61e82b91dda2369ef32f62.tar.bz2 fork-ledger-408b819c6e087593ba61e82b91dda2369ef32f62.zip |
Greatly simplified the way option and command handlers are defined.
Diffstat (limited to 'src/output.cc')
-rw-r--r-- | src/output.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/output.cc b/src/output.cc index da1f4bc5..a0db92b6 100644 --- a/src/output.cc +++ b/src/output.cc @@ -159,7 +159,7 @@ void format_accounts::flush() account_t::xdata_t& xdata(report.session.master->xdata()); - if (! report.show_collapsed && xdata.total) { + if (! report.HANDLED(collapse) && xdata.total) { out << "--------------------\n"; xdata.value = xdata.total; bind_scope_t bound_scope(report, *report.session.master); @@ -201,11 +201,11 @@ bool format_accounts::disp_subaccounts_p(account_t& account, bind_scope_t bound_scope(report, *pair.second); call_scope_t args(bound_scope); - result = report.get_total_expr(args); + result = report.fn_total_expr(args); if (! computed) { bind_scope_t account_scope(report, account); call_scope_t args(account_scope); - acct_total = report.get_total_expr(args); + acct_total = report.fn_total_expr(args); computed = true; } |