From 3c3606aa0dc36d4d2a3d4786b1658f255587a1f0 Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Mon, 9 Feb 2009 18:46:01 -0400 Subject: Break libledger_data's dependency on session_t. --- src/session.cc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/session.cc') 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, -- cgit v1.2.3