summaryrefslogtreecommitdiff
path: root/src/account.cc
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2009-03-08 04:15:48 -0400
committerJohn Wiegley <johnw@newartisans.com>2009-03-08 04:15:48 -0400
commit77faaa926f06dc10cab65d08e0d35836d4a273a6 (patch)
tree4ae29e114cdcb7e4f858c0cd9817f12d9c3543c9 /src/account.cc
parentdd6c0ae80dadc0965d9b723ed6a7be9323beec52 (diff)
downloadfork-ledger-77faaa926f06dc10cab65d08e0d35836d4a273a6.tar.gz
fork-ledger-77faaa926f06dc10cab65d08e0d35836d4a273a6.tar.bz2
fork-ledger-77faaa926f06dc10cab65d08e0d35836d4a273a6.zip
Rewrote the balance report again, to fix --depth
Diffstat (limited to 'src/account.cc')
-rw-r--r--src/account.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/account.cc b/src/account.cc
index 0db42cdb..24849a72 100644
--- a/src/account.cc
+++ b/src/account.cc
@@ -136,7 +136,7 @@ string account_t::partial_name(bool flat) const
acct && acct->parent;
acct = acct->parent) {
if (! flat) {
- std::size_t count = acct->children_with_flags(ACCOUNT_EXT_MATCHING);
+ std::size_t count = acct->children_with_flags(ACCOUNT_EXT_TO_DISPLAY);
assert(count > 0);
if (count > 1)
break;
@@ -198,7 +198,7 @@ namespace {
for (const account_t * acct = account.parent;
acct && acct->parent;
acct = acct->parent) {
- std::size_t count = acct->children_with_flags(ACCOUNT_EXT_MATCHING);
+ std::size_t count = acct->children_with_flags(ACCOUNT_EXT_TO_DISPLAY);
assert(count > 0);
if (count > 1)
depth++;