Transaction.c: Note a bug discovered in testing.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@23135 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
John Ralls 2013-08-16 16:43:30 +00:00
parent 4ac2182cce
commit 6c49aad96e

View File

@ -1590,6 +1590,9 @@ xaccTransRollbackEdit (Transaction *trans)
/* The splits at the front of trans->splits are exactly the same /* The splits at the front of trans->splits are exactly the same
splits as in the original, but some of them may have changed, so splits as in the original, but some of them may have changed, so
we restore only those. */ we restore only those. */
/* FIXME: Runs off the transaction's splits, so deleted splits are not
* restored!
*/
num_preexist = g_list_length(orig->splits); num_preexist = g_list_length(orig->splits);
slist = g_list_copy(trans->splits); slist = g_list_copy(trans->splits);
for (i = 0, node = slist, onode = orig->splits; node; for (i = 0, node = slist, onode = orig->splits; node;