diff --git a/ChangeLog b/ChangeLog index ebe303e324..fe195933e1 100644 --- a/ChangeLog +++ b/ChangeLog @@ -94,6 +94,8 @@ 2006-08-20 David Hampton + * src/app-utils/gnc-account-merge.c: Merge account trees properly. + * src/backend/file/io-gncxml-v2.c: * src/engine/Account.c: Make sure the root account exists when the code asks for it. This works both for reading a new file and a diff --git a/src/app-utils/gnc-account-merge.c b/src/app-utils/gnc-account-merge.c index 98006a7b77..27623a893e 100644 --- a/src/app-utils/gnc-account-merge.c +++ b/src/app-utils/gnc-account-merge.c @@ -44,7 +44,7 @@ account_trees_merge(Account *existing_root, Account *new_accts_root) Account *existing_named, *new_acct; const char *name; - new_acct = (Account*)accounts->data; + new_acct = (Account*)node->data; name = xaccAccountGetName(new_acct); existing_named = gnc_account_lookup_name(existing_root, name); switch (determine_account_merge_disposition(existing_named, new_acct))