summaryrefslogtreecommitdiff
path: root/src/gnucash.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/gnucash.cc')
-rw-r--r--src/gnucash.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gnucash.cc b/src/gnucash.cc
index 5a171ace..6b9b5211 100644
--- a/src/gnucash.cc
+++ b/src/gnucash.cc
@@ -89,7 +89,7 @@ static enum action_t {
static void startElement(void *, const char *name, const char **)
{
if (std::strcmp(name, "gnc:account") == 0) {
- curr_account = new account_t(master_account);
+ curr_account = new account_t(master_account->owner, master_account);
}
else if (std::strcmp(name, "act:name") == 0)
action = ACCOUNT_NAME;