summaryrefslogtreecommitdiff
path: root/src/session.cc
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2009-02-09 18:46:01 -0400
committerJohn Wiegley <johnw@newartisans.com>2009-02-09 18:46:01 -0400
commit3c3606aa0dc36d4d2a3d4786b1658f255587a1f0 (patch)
tree8b6b80294bb4deadb1b9b527e5f2118d8643e334 /src/session.cc
parent75c7fbf23e76d901b539fbcf2b35723a2a50787d (diff)
downloadfork-ledger-3c3606aa0dc36d4d2a3d4786b1658f255587a1f0.tar.gz
fork-ledger-3c3606aa0dc36d4d2a3d4786b1658f255587a1f0.tar.bz2
fork-ledger-3c3606aa0dc36d4d2a3d4786b1658f255587a1f0.zip
Break libledger_data's dependency on session_t.
Diffstat (limited to 'src/session.cc')
-rw-r--r--src/session.cc4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/session.cc b/src/session.cc
index 1dfd05cc..99b0d013 100644
--- a/src/session.cc
+++ b/src/session.cc
@@ -84,7 +84,9 @@ std::size_t session_t::read_journal(std::istream& in,
{
if (! master)
master = journal->master;
- return journal->parse(in, *this, master, &pathname);
+ std::size_t count = journal->parse(in, *this, master, &pathname);
+ clean_accounts(); // remove calculated totals
+ return count;
}
std::size_t session_t::read_journal(const path& pathname,