summaryrefslogtreecommitdiff
path: root/src/textual.cc
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2012-10-25 12:50:30 -0700
committerJohn Wiegley <johnw@newartisans.com>2012-10-25 12:50:30 -0700
commitde729114d1be1e6b0bb92c3b5e3f157308c67eae (patch)
treeecbdf910a5370aaa868e488da9d00397e08206f6 /src/textual.cc
parentb1661b6c90f608f50f1e976125f554069a653f40 (diff)
parente824070b4ac098010f993dbdbcdff9a4bf1a3ba6 (diff)
downloadfork-ledger-de729114d1be1e6b0bb92c3b5e3f157308c67eae.tar.gz
fork-ledger-de729114d1be1e6b0bb92c3b5e3f157308c67eae.tar.bz2
fork-ledger-de729114d1be1e6b0bb92c3b5e3f157308c67eae.zip
Merge pull request #92 from kljohann/bugs.bucket
fix bucket directive (bug 765)
Diffstat (limited to 'src/textual.cc')
-rw-r--r--src/textual.cc8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/textual.cc b/src/textual.cc
index 0ead9232..7f2f2a69 100644
--- a/src/textual.cc
+++ b/src/textual.cc
@@ -148,7 +148,7 @@ namespace {
void account_value_directive(account_t * account, string expr_str);
void account_default_directive(account_t * account);
- void default_account_directive(char * line);
+ void default_account_directive(char * args);
void alias_directive(char * line);
void payee_directive(char * line);
@@ -397,7 +397,7 @@ void instance_t::read_next_directive(bool& error_flag)
#endif // TIMELOG_SUPPORT
case 'A': // a default account for unbalanced posts
- default_account_directive(line);
+ default_account_directive(line + 1);
break;
case 'C': // a set of conversions
price_conversion_directive(line);
@@ -490,9 +490,9 @@ void instance_t::default_commodity_directive(char * line)
amt.commodity().add_flags(COMMODITY_KNOWN);
}
-void instance_t::default_account_directive(char * line)
+void instance_t::default_account_directive(char * args)
{
- context.journal->bucket = top_account()->find_account(skip_ws(line + 1));
+ context.journal->bucket = top_account()->find_account(skip_ws(name));
context.journal->bucket->add_flags(ACCOUNT_KNOWN);
}