summaryrefslogtreecommitdiff
path: root/format.h
diff options
context:
space:
mode:
Diffstat (limited to 'format.h')
-rw-r--r--format.h11
1 files changed, 7 insertions, 4 deletions
diff --git a/format.h b/format.h
index dd578dbd..0f34b36a 100644
--- a/format.h
+++ b/format.h
@@ -153,8 +153,7 @@ class format_account : public item_handler<account_t>
}
static bool display_account(const account_t * account,
- const item_predicate<account_t>& disp_pred,
- const bool even_top = false);
+ const item_predicate<account_t>& disp_pred);
virtual void flush() {
output_stream.flush();
@@ -162,8 +161,12 @@ class format_account : public item_handler<account_t>
virtual void operator()(account_t * account) {
if (display_account(account, disp_pred)) {
- format.format_elements(output_stream, details_t(account));
- account->dflags |= ACCOUNT_DISPLAYED;
+ if (! account->parent) {
+ account->dflags |= ACCOUNT_TO_DISPLAY;
+ } else {
+ format.format_elements(output_stream, details_t(account));
+ account->dflags |= ACCOUNT_DISPLAYED;
+ }
}
}
};