Bug #669964: Fix txn creation that forgot to set a txn currency.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@23058 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
Christian Stimming committed 2013-06-19 15:48:02 +00:00
1 parent 9b093abc4a
commit d8a0015a3c
1 file changed
+4
@@ -479,6 +479,10 @@ static void process_trans_record( FILE *log_file)
{
acct = xaccAccountLookupDirect(record.acc_guid, book);
xaccAccountInsertSplit(acct, split);
// No currency in the txn yet? Set one now.
if (!xaccTransGetCurrency(trans))
xaccTransSetCurrency(trans, gnc_account_or_default_currency(acct, NULL));
}
if (is_new_split)
xaccTransAppendSplit(trans, split);