From 0fdb900c9975b97b43fe85c2691a9d5e69006fab Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Tue, 27 Oct 2009 07:15:41 -0400 Subject: Redid the way temporaries are handled in filtering --- src/textual.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/textual.cc') diff --git a/src/textual.cc b/src/textual.cc index 56c67ef3..09cd8360 100644 --- a/src/textual.cc +++ b/src/textual.cc @@ -446,7 +446,7 @@ void instance_t::default_commodity_directive(char * line) void instance_t::default_account_directive(char * line) { journal.basket = account_stack.front()->find_account(skip_ws(line + 1)); - journal.basket->known = true; + journal.basket->add_flags(ACCOUNT_KNOWN); } void instance_t::price_conversion_directive(char * line) @@ -845,11 +845,11 @@ post_t * instance_t::parse_post(char * line, if (! post->account) post->account = account->find_account(name); - if (honor_strict && strict && ! post->account->known) { + if (honor_strict && strict && ! post->account->has_flags(ACCOUNT_KNOWN)) { if (post->_state == item_t::UNCLEARED) warning_(_("\"%1\", line %2: Unknown account '%3'") << pathname << linenum << post->account->fullname()); - post->account->known = true; + post->account->add_flags(ACCOUNT_KNOWN); } // Parse the optional amount -- cgit v1.2.3