r17960 - gnucash/trunk/src/register/ledger-core - Register: Fix a bug that appears in basic and auto-split ledger modes when entering a new transaction. Entering multiple splits for the register's account would cause the 2nd though nth splits to be displayed above the new transaction, making them appear to be non-new.

Charles Day cedayiv at cvs.gnucash.org
Wed Feb 25 11:50:31 EST 2009


Author: cedayiv
Date: 2009-02-25 11:50:30 -0500 (Wed, 25 Feb 2009)
New Revision: 17960
Trac: http://svn.gnucash.org/trac/changeset/17960

Modified:
   gnucash/trunk/src/register/ledger-core/split-register-load.c
Log:
Register: Fix a bug that appears in basic and auto-split ledger modes when entering a new transaction. Entering multiple splits for the register's account would cause the 2nd though nth splits to be displayed above the new transaction, making them appear to be non-new.


Modified: gnucash/trunk/src/register/ledger-core/split-register-load.c
===================================================================
--- gnucash/trunk/src/register/ledger-core/split-register-load.c	2009-02-25 00:11:01 UTC (rev 17959)
+++ gnucash/trunk/src/register/ledger-core/split-register-load.c	2009-02-25 16:50:30 UTC (rev 17960)
@@ -507,15 +507,13 @@
     if (pending_trans == trans)
       found_pending = TRUE;
 
-    /* do not load the blank split */
-    if (split == blank_split)
-      continue;
+    /* Do not load splits from the blank transaction. */
+    if (trans == blank_trans)
+        continue;
 
     if (multi_line)
     {
-      if (trans == blank_trans)
-        continue;
-
+      /* Skip this split if its transaction has already been loaded. */
       if (g_hash_table_lookup (trans_table, trans))
         continue;
 



More information about the gnucash-changes mailing list