[Gnucash-changes] r12048 - gnucash/trunk - Initialize the qof entity in the new split, not the old one.

David Hampton hampton at cvs.gnucash.org
Sat Nov 26 12:50:42 EST 2005


Author: hampton
Date: 2005-11-26 12:50:42 -0500 (Sat, 26 Nov 2005)
New Revision: 12048
Trac: http://svn.gnucash.org/trac/changeset/12048

Modified:
   gnucash/trunk/ChangeLog
   gnucash/trunk/src/engine/Transaction.c
Log:
Initialize the qof entity in the new split, not the old one.


Modified: gnucash/trunk/ChangeLog
===================================================================
--- gnucash/trunk/ChangeLog	2005-11-26 15:02:50 UTC (rev 12047)
+++ gnucash/trunk/ChangeLog	2005-11-26 17:50:42 UTC (rev 12048)
@@ -1,3 +1,8 @@
+2005-11-26  David Hampton  <hampton at employees.org>
+
+	* src/engine/Transaction.c: Initialize the qof entity in the new
+	split, not the old one.
+
 2005-11-25  David Hampton  <hampton at employees.org>
 
 	* src/business/dialog-tax-table/dialog-tax-table.c: Andreas

Modified: gnucash/trunk/src/engine/Transaction.c
===================================================================
--- gnucash/trunk/src/engine/Transaction.c	2005-11-26 15:02:50 UTC (rev 12047)
+++ gnucash/trunk/src/engine/Transaction.c	2005-11-26 17:50:42 UTC (rev 12048)
@@ -213,7 +213,7 @@
   split->gains_split = NULL;
 
   col = qof_book_get_collection (s->book, GNC_ID_SPLIT);
-  qof_entity_init (&s->entity, GNC_ID_SPLIT, col);
+  qof_entity_init (&split->entity, GNC_ID_SPLIT, col);
 
   xaccAccountInsertSplit(s->acc, split);
   if (s->lot) 



More information about the gnucash-changes mailing list