From 6c49aad96e6f5d4241e103939db55f3bcf541b2a Mon Sep 17 00:00:00 2001 From: John Ralls Date: Fri, 16 Aug 2013 16:43:30 +0000 Subject: [PATCH] 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 --- src/engine/Transaction.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/engine/Transaction.c b/src/engine/Transaction.c index 4cfdca1a89..f9c112bcc3 100644 --- a/src/engine/Transaction.c +++ b/src/engine/Transaction.c @@ -1590,6 +1590,9 @@ xaccTransRollbackEdit (Transaction *trans) /* 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 we restore only those. */ +/* FIXME: Runs off the transaction's splits, so deleted splits are not + * restored! + */ num_preexist = g_list_length(orig->splits); slist = g_list_copy(trans->splits); for (i = 0, node = slist, onode = orig->splits; node;