From d85a415bc5119d4271ca7355fe3e0ce3951c0d23 Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Mon, 26 Oct 2009 17:23:46 -0400 Subject: In the balance report, don't output any account twice --- src/output.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/output.cc') diff --git a/src/output.cc b/src/output.cc index 92824714..fead2326 100644 --- a/src/output.cc +++ b/src/output.cc @@ -138,7 +138,8 @@ format_accounts::format_accounts(report_t& _report, std::size_t format_accounts::post_account(account_t& account) { - if (account.xdata().has_flags(ACCOUNT_EXT_TO_DISPLAY)) { + if (account.xdata().has_flags(ACCOUNT_EXT_TO_DISPLAY) && + ! account.xdata().has_flags(ACCOUNT_EXT_DISPLAYED)) { if (account.parent && account.parent->xdata().has_flags(ACCOUNT_EXT_TO_DISPLAY) && ! account.parent->xdata().has_flags(ACCOUNT_EXT_DISPLAYED)) -- cgit v1.2.3