mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
bug fix
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@6527 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
parent
434a74cca8
commit
9c3a997a4e
@ -272,23 +272,8 @@ get_account_cb (PGBackend *be, PGresult *result, int j, gpointer data)
|
||||
|
||||
PINFO ("account GUID=%s", DB_GET_VAL("accountGUID",j));
|
||||
|
||||
if (NULL == book)
|
||||
{
|
||||
GList *node;
|
||||
GUID book_guid;
|
||||
|
||||
FIND_BOOK (book);
|
||||
|
||||
book = NULL;
|
||||
for (node=be->blist; node; node=node->next)
|
||||
{
|
||||
book = node->data;
|
||||
if (guid_equal (&book->guid, &book_guid)) break;
|
||||
book = NULL;
|
||||
}
|
||||
if (!book) return data;
|
||||
}
|
||||
|
||||
/* Next, lets see if we've already got this account */
|
||||
acct_guid = nullguid; /* just in case the read fails ... */
|
||||
string_to_guid (DB_GET_VAL("accountGUID",j), &acct_guid);
|
||||
|
@ -358,7 +358,7 @@ gnc_commodity * gnc_string_to_commodity (const char *str, GNCBook *book);
|
||||
if (guid_equal (&book->guid, &book_guid)) break; \
|
||||
book = NULL; \
|
||||
} \
|
||||
if (!book) return NULL; \
|
||||
if (!book) return data; \
|
||||
} \
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user