scrub the transaction for a currency after we replay. (#143720).

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13283 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
Derek Atkins 2006-02-17 21:47:13 +00:00
parent 6aec7f5a94
commit 6d15e9e2ca
2 changed files with 5 additions and 0 deletions

View File

@ -36,6 +36,9 @@
* src/import-export/log-replay/gnc-log-replay.c:
Don't pass NULL to ferror() (from bug #143720).
* src/import-export/log-replay/gnc-log-replay.c:
scrub the transaction for a currency after we replay. (#143720).
2006-02-15 Derek Atkins <derek@ihtfp.com>
* configure.in: get --disable-gui to actually do what we want.

View File

@ -37,6 +37,7 @@
#include "Account.h"
#include "Transaction.h"
#include "TransactionP.h"
#include "Scrub.h"
#include "gnc-log-replay.h"
#include "gnc-file.h"
#include "qof.h"
@ -485,6 +486,7 @@ static void process_trans_record( FILE *log_file)
DEBUG("process_trans_record(): Record ended\n");
if(trans!=NULL)/*If we played with a transaction, commit it here*/
{
xaccTransScrubCurrencyFromSplits(trans);
xaccTransCommitEdit(trans);
}
}