Initialize the qof entity in the new split, not the old one.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@12048 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
David Hampton 2005-11-26 17:50:42 +00:00
parent 9f1961b54a
commit bd554767b3
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2005-11-26 David Hampton <hampton@employees.org>
* src/engine/Transaction.c: Initialize the qof entity in the new
split, not the old one.
2005-11-25 David Hampton <hampton@employees.org>
* src/business/dialog-tax-table/dialog-tax-table.c: Andreas

View File

@ -213,7 +213,7 @@ xaccSplitClone (Split *s)
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)