diff options
author | John Wiegley <johnw@newartisans.com> | 2009-10-27 08:32:42 -0400 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2009-10-27 08:32:42 -0400 |
commit | 027c255a4fa8dd8ab9cf433e6f9491ce7e5658aa (patch) | |
tree | eb5ab88d751ec975681ae748d441f44d4799bd63 /src/textual.cc | |
parent | 7fae606d622d8cd463ce5f81f5d7872a4fdebc60 (diff) | |
parent | 3ea7fbd5f6db4d362af79953b23bacc904909cff (diff) | |
download | ledger-027c255a4fa8dd8ab9cf433e6f9491ce7e5658aa.tar.gz ledger-027c255a4fa8dd8ab9cf433e6f9491ce7e5658aa.tar.bz2 ledger-027c255a4fa8dd8ab9cf433e6f9491ce7e5658aa.zip |
Merge branch 'next'
Diffstat (limited to 'src/textual.cc')
-rw-r--r-- | src/textual.cc | 6 |
1 files changed, 3 insertions, 3 deletions
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 |