From 2728e4d55e1c9e84ee5aae4ee8e9c380198d1c99 Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Fri, 6 Mar 2009 00:26:30 -0400 Subject: Changed the way that account balances are computed --- src/output.cc | 16 +++++----------- 1 file changed, 5 insertions(+), 11 deletions(-) (limited to 'src/output.cc') diff --git a/src/output.cc b/src/output.cc index f10de042..975d8077 100644 --- a/src/output.cc +++ b/src/output.cc @@ -297,17 +297,11 @@ void format_accounts::flush() } } - if (report.session.master->has_xdata()) { - account_t::xdata_t& xdata(report.session.master->xdata()); - - if (! report.HANDLED(no_total) && top_displayed > 1 && - xdata.family_details.total) { - xdata.self_details.total = xdata.family_details.total; - - bind_scope_t bound_scope(report, *report.session.master); - separator_format.format(out, bound_scope); - total_line_format.format(out, bound_scope); - } + if (! report.HANDLED(no_total) && top_displayed > 1 && + report.session.master->family_total()) { + bind_scope_t bound_scope(report, *report.session.master); + separator_format.format(out, bound_scope); + total_line_format.format(out, bound_scope); } out.flush(); -- cgit v1.2.3