summaryrefslogtreecommitdiff
path: root/format.cc
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2004-08-07 23:20:10 -0400
committerJohn Wiegley <johnw@newartisans.com>2004-08-07 23:20:10 -0400
commit59c0692233812eeba568dac735d7b4d4576cf30a (patch)
tree79c3fa592dc5a57be4c6d2de7a47f1efdbf72562 /format.cc
parenteffa82793fbddce8c04ea9387b7389ac5b8f0a59 (diff)
downloadfork-ledger-59c0692233812eeba568dac735d7b4d4576cf30a.tar.gz
fork-ledger-59c0692233812eeba568dac735d7b4d4576cf30a.tar.bz2
fork-ledger-59c0692233812eeba568dac735d7b4d4576cf30a.zip
moved display only flags to dflags in both transactions and accounts
Diffstat (limited to 'format.cc')
-rw-r--r--format.cc8
1 files changed, 4 insertions, 4 deletions
diff --git a/format.cc b/format.cc
index 035a2c77..aa1a8e1c 100644
--- a/format.cc
+++ b/format.cc
@@ -21,7 +21,7 @@ std::string partial_account_name(const account_t * account)
for (const account_t * acct = account;
acct && acct->parent;
acct = acct->parent) {
- if (acct->flags & ACCOUNT_DISPLAYED)
+ if (acct->dflags & ACCOUNT_DISPLAYED)
break;
if (name.empty())
@@ -289,7 +289,7 @@ void format_t::format_elements(std::ostream& out,
for (const account_t * acct = details.account;
acct;
acct = acct->parent)
- if (acct->flags & ACCOUNT_DISPLAYED) {
+ if (acct->dflags & ACCOUNT_DISPLAYED) {
if (elem->min_width > 0 || elem->max_width > 0)
out.width(elem->min_width > elem->max_width ?
elem->min_width : elem->max_width);
@@ -359,7 +359,7 @@ void format_transaction::operator()(transaction_t * xact) const
xact->index = last_xact ? last_xact->index + 1 : 0;
if (disp_pred_functor(xact)) {
- xact->flags |= TRANSACTION_DISPLAYED;
+ xact->dflags |= TRANSACTION_DISPLAYED;
// This makes the assumption that transactions from a single entry
// are always grouped together.
@@ -432,7 +432,7 @@ void format_account::operator()(account_t * account,
if (output && (max_depth == 0 || account->depth <= max_depth)) {
format.format_elements(output_stream, details_t(account));
- account->flags |= ACCOUNT_DISPLAYED;
+ account->dflags |= ACCOUNT_DISPLAYED;
}
}
}