From 5bd2401bc7cde0e01cd5b9d18cf077e255c4bd45 Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Tue, 30 Sep 2003 07:02:31 +0000 Subject: *** empty log message *** --- gnucash.cc | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'gnucash.cc') diff --git a/gnucash.cc b/gnucash.cc index f4c48042..fb768cd8 100644 --- a/gnucash.cc +++ b/gnucash.cc @@ -18,9 +18,9 @@ static amount * curr_value; static std::string curr_quant; static XML_Parser current_parser; -accounts_t accounts_by_id; +static accounts_t accounts_by_id; -enum { +static enum { NO_ACTION, ACCOUNT_NAME, ACCOUNT_ID, @@ -97,7 +97,8 @@ static void endElement(void *userData, const char *name) { if (std::strcmp(name, "gnc:account") == 0) { assert(curr_account); - accounts.insert(accounts_entry(curr_account->name, curr_account)); + if (! curr_account->parent) + accounts.insert(accounts_entry(curr_account->name, curr_account)); accounts_by_id.insert(accounts_entry(curr_account_id, curr_account)); curr_account = NULL; } -- cgit v1.2.3