summaryrefslogtreecommitdiff
path: root/src/output.cc
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2009-06-15 17:51:00 +0100
committerJohn Wiegley <johnw@newartisans.com>2009-06-15 17:52:52 +0100
commite97b59b0061f271476cdaf959f9530f4d737864b (patch)
tree655204b471cc9355b0ff10bbb07b8ae4938314df /src/output.cc
parent092bda14359d414e1b1e62184cc4d927a4154348 (diff)
downloadfork-ledger-e97b59b0061f271476cdaf959f9530f4d737864b.tar.gz
fork-ledger-e97b59b0061f271476cdaf959f9530f4d737864b.tar.bz2
fork-ledger-e97b59b0061f271476cdaf959f9530f4d737864b.zip
Refinement to display of account balances
Fixes 5A03CFC3-1A76-4F93-A1FE-555F98438C5A
Diffstat (limited to 'src/output.cc')
-rw-r--r--src/output.cc4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/output.cc b/src/output.cc
index 63d8c919..c4317934 100644
--- a/src/output.cc
+++ b/src/output.cc
@@ -179,7 +179,9 @@ format_accounts::mark_accounts(account_t& account, const bool flat)
(account.has_flags(ACCOUNT_EXT_VISITED) || (! flat && visited > 0))) {
bind_scope_t bound_scope(report, account);
if ((! flat && to_display > 1) ||
- (disp_pred(bound_scope) && (flat || to_display != 1))) {
+ ((flat || to_display != 1 ||
+ account.has_flags(ACCOUNT_EXT_VISITED)) &&
+ disp_pred(bound_scope))) {
account.xdata().add_flags(ACCOUNT_EXT_TO_DISPLAY);
DEBUG("account.display", "Marking account as TO_DISPLAY");
to_display = 1;