mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
fix a transfer bug
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@958 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
parent
3c79fcd36b
commit
c6b28a5094
@ -201,7 +201,8 @@ printf ("save split is %p \n", split);
|
||||
|
||||
/* do some reparenting */
|
||||
old_acc = xaccSplitGetAccount (split);
|
||||
new_acc = xaccGetPeerAccountFromName (old_acc, reg->xfrmCell->cell.value);
|
||||
|
||||
new_acc = xaccGetAccountByName (trans, reg->xfrmCell->cell.value);
|
||||
xaccAccountInsertSplit (new_acc, split);
|
||||
|
||||
/* make sure any open windows of the old account get redrawn */
|
||||
|
Loading…
Reference in New Issue
Block a user