diff options
author | John Wiegley <johnw@newartisans.com> | 2010-01-21 04:55:11 -0500 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2010-01-21 04:55:11 -0500 |
commit | 61edd3d8f4c7d5a9d8cabfb9391a7e9f20a95446 (patch) | |
tree | d43f5edd3f199b2ef48e8111da6a4f5917944557 /src/output.cc | |
parent | 590ba76bd1440ca2acda562857bae4733619e1f5 (diff) | |
download | fork-ledger-61edd3d8f4c7d5a9d8cabfb9391a7e9f20a95446.tar.gz fork-ledger-61edd3d8f4c7d5a9d8cabfb9391a7e9f20a95446.tar.bz2 fork-ledger-61edd3d8f4c7d5a9d8cabfb9391a7e9f20a95446.zip |
Fixed account display bug in the balance report
Diffstat (limited to 'src/output.cc')
-rw-r--r-- | src/output.cc | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/src/output.cc b/src/output.cc index 71ec6d88..bb7eff5c 100644 --- a/src/output.cc +++ b/src/output.cc @@ -152,13 +152,12 @@ format_accounts::format_accounts(report_t& _report, std::size_t format_accounts::post_account(account_t& account, const bool flat) { + if (! flat && account.parent) + post_account(*account.parent, flat); + if (account.xdata().has_flags(ACCOUNT_EXT_TO_DISPLAY) && ! account.xdata().has_flags(ACCOUNT_EXT_DISPLAYED)) { - if (! flat && account.parent && - account.parent->xdata().has_flags(ACCOUNT_EXT_TO_DISPLAY) && - ! account.parent->xdata().has_flags(ACCOUNT_EXT_DISPLAYED)) - post_account(*account.parent, flat); - + DEBUG("account.display", "Displaying account: " << account.fullname()); account.xdata().add_flags(ACCOUNT_EXT_DISPLAYED); bind_scope_t bound_scope(report, account); |