summaryrefslogtreecommitdiff
path: root/format.cc
diff options
context:
space:
mode:
Diffstat (limited to 'format.cc')
-rw-r--r--format.cc8
1 files changed, 3 insertions, 5 deletions
diff --git a/format.cc b/format.cc
index 956dae62..6d9f9384 100644
--- a/format.cc
+++ b/format.cc
@@ -385,12 +385,10 @@ bool format_account::disp_subaccounts_p(const account_t * account,
}
bool format_account::display_account(const account_t * account,
- const item_predicate<account_t>& disp_pred,
- const bool even_top)
+ const item_predicate<account_t>& disp_pred)
{
- // Never display the master account, or an account that has already
- // been displayed.
- if (! (account->parent || even_top) || account->dflags & ACCOUNT_DISPLAYED)
+ // Never display an account that has already been displayed.
+ if (account->dflags & ACCOUNT_DISPLAYED)
return false;
// At this point, one of two possibilities exists: the account is a