mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
bug fix
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@6257 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
parent
621fac5c3b
commit
c1f59c52c9
@ -45,6 +45,12 @@ gnc_book_insert_trans (GNCBook *book, Transaction *trans)
|
||||
if (trans->book == book) return;
|
||||
|
||||
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. */
|
||||
xaccTransBeginEdit (trans);
|
||||
|
Loading…
Reference in New Issue
Block a user