git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@6257 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
Linas Vepstas 2001-12-05 18:13:51 +00:00
parent 621fac5c3b
commit c1f59c52c9

View File

@ -45,6 +45,12 @@ gnc_book_insert_trans (GNCBook *book, Transaction *trans)
if (trans->book == book) return; if (trans->book == book) return;
newtrans = xaccDupeTransaction (trans); newtrans = xaccDupeTransaction (trans);
for (node = newtrans->splits; node; node = node->next)
{
Split *s = node->data;
s->parent = newtrans;
}
/* Utterly wipe out the transaction from the old book. */ /* Utterly wipe out the transaction from the old book. */
xaccTransBeginEdit (trans); xaccTransBeginEdit (trans);