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:
Linas Vepstas 1998-08-08 21:15:15 +00:00
parent 3c79fcd36b
commit c6b28a5094

View File

@ -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 */