diff options
author | John Wiegley <johnw@newartisans.com> | 2009-02-04 20:46:56 -0400 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2009-02-04 20:46:56 -0400 |
commit | f8ba4165fea63748d3f560bd16bc6c5c29ff2b3e (patch) | |
tree | 49d3fb08809e960d5c2e9bb3c826d799e583d01c /src/session.cc | |
parent | 7d628d88ff54ac08df499406bb87b87c3f8989a3 (diff) | |
download | fork-ledger-f8ba4165fea63748d3f560bd16bc6c5c29ff2b3e.tar.gz fork-ledger-f8ba4165fea63748d3f560bd16bc6c5c29ff2b3e.tar.bz2 fork-ledger-f8ba4165fea63748d3f560bd16bc6c5c29ff2b3e.zip |
Clear the master account totals after a report is done.
Diffstat (limited to 'src/session.cc')
-rw-r--r-- | src/session.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/session.cc b/src/session.cc index 64c320e9..cbca106f 100644 --- a/src/session.cc +++ b/src/session.cc @@ -281,8 +281,7 @@ std::size_t session_t::read_data(journal_t& journal, void session_t::clean_xacts() { session_xacts_iterator walker(*this); - pass_down_xacts - (xact_handler_ptr(new clear_xact_xdata), walker); + pass_down_xacts(xact_handler_ptr(new clear_xact_xdata), walker); } void session_t::clean_xacts(entry_t& entry) @@ -295,6 +294,7 @@ void session_t::clean_accounts() { basic_accounts_iterator acct_walker(*master); pass_down_accounts(acct_handler_ptr(new clear_account_xdata), acct_walker); + master->clear_xdata(); } #if 0 |