r23135 - gnucash/trunk/src/engine - Transaction.c: Note a bug discovered in testing.
John Ralls
jralls at code.gnucash.org
Fri Aug 16 12:43:30 EDT 2013
Author: jralls
Date: 2013-08-16 12:43:30 -0400 (Fri, 16 Aug 2013)
New Revision: 23135
Trac: http://svn.gnucash.org/trac/changeset/23135
Modified:
gnucash/trunk/src/engine/Transaction.c
Log:
Transaction.c: Note a bug discovered in testing.
Modified: gnucash/trunk/src/engine/Transaction.c
===================================================================
--- gnucash/trunk/src/engine/Transaction.c 2013-08-16 16:43:12 UTC (rev 23134)
+++ gnucash/trunk/src/engine/Transaction.c 2013-08-16 16:43:30 UTC (rev 23135)
@@ -1590,6 +1590,9 @@
/* 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;
More information about the gnucash-changes
mailing list