[Gnucash-changes] r13283 - gnucash/trunk - scrub the transaction for a currency after we replay. (#143720).

Derek Atkins warlord at cvs.gnucash.org
Fri Feb 17 16:47:13 EST 2006


Author: warlord
Date: 2006-02-17 16:47:13 -0500 (Fri, 17 Feb 2006)
New Revision: 13283
Trac: http://svn.gnucash.org/trac/changeset/13283

Modified:
   gnucash/trunk/ChangeLog
   gnucash/trunk/src/import-export/log-replay/gnc-log-replay.c
Log:
 scrub the transaction for a currency after we replay. (#143720).



Modified: gnucash/trunk/ChangeLog
===================================================================
--- gnucash/trunk/ChangeLog	2006-02-17 21:31:29 UTC (rev 13282)
+++ gnucash/trunk/ChangeLog	2006-02-17 21:47:13 UTC (rev 13283)
@@ -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 at ihtfp.com>
 
 	* configure.in:  get --disable-gui to actually do what we want.

Modified: gnucash/trunk/src/import-export/log-replay/gnc-log-replay.c
===================================================================
--- gnucash/trunk/src/import-export/log-replay/gnc-log-replay.c	2006-02-17 21:31:29 UTC (rev 13282)
+++ gnucash/trunk/src/import-export/log-replay/gnc-log-replay.c	2006-02-17 21:47:13 UTC (rev 13283)
@@ -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 @@
 	  DEBUG("process_trans_record(): Record ended\n");
 	  if(trans!=NULL)/*If we played with a transaction, commit it here*/
 	    {
+	      xaccTransScrubCurrencyFromSplits(trans);
 	      xaccTransCommitEdit(trans);
 	    }
 	}



More information about the gnucash-changes mailing list