summaryrefslogtreecommitdiff
path: root/src/ofx.cc
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2008-08-10 00:57:29 -0400
committerJohn Wiegley <johnw@newartisans.com>2008-08-10 00:57:29 -0400
commitc9d575abceb672d1c23383d973adee40daeecda8 (patch)
treedea80d45787359712e582cc7bf5d700a4419ec30 /src/ofx.cc
parent65510c9a9f0d588a8d0285072dfc2e2a153e5253 (diff)
downloadfork-ledger-c9d575abceb672d1c23383d973adee40daeecda8.tar.gz
fork-ledger-c9d575abceb672d1c23383d973adee40daeecda8.tar.bz2
fork-ledger-c9d575abceb672d1c23383d973adee40daeecda8.zip
Basic balance reports are working again!
Diffstat (limited to 'src/ofx.cc')
-rw-r--r--src/ofx.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/ofx.cc b/src/ofx.cc
index 8940f62a..0bc917e8 100644
--- a/src/ofx.cc
+++ b/src/ofx.cc
@@ -61,7 +61,8 @@ int ofx_proc_account_cb(struct OfxAccountData data, void *)
return -1;
DEBUG("ledger.ofx.parse", "account " << data.account_name);
- account_t * account = new account_t(master_account, data.account_name);
+ account_t * account = new account_t(master_account->owner, master_account,
+ data.account_name);
curr_journal->add_account(account);
ofx_accounts.insert(accounts_pair(data.account_id, account));