diff --git a/ChangeLog b/ChangeLog index d17e7da283..f325bb18c4 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2005-11-26 David Hampton + + * src/engine/Transaction.c: Initialize the qof entity in the new + split, not the old one. + 2005-11-25 David Hampton * src/business/dialog-tax-table/dialog-tax-table.c: Andreas diff --git a/src/engine/Transaction.c b/src/engine/Transaction.c index c3dc037b4b..dbb5b32cf8 100644 --- a/src/engine/Transaction.c +++ b/src/engine/Transaction.c @@ -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)