r18514 - gnucash/trunk/src/register/ledger-core - Reset found_trans_split when the transaction being considered in gnc_split_register_find_split

Mike Alexander mta at code.gnucash.org
Thu Dec 17 02:28:30 EST 2009


Author: mta
Date: 2009-12-17 02:28:30 -0500 (Thu, 17 Dec 2009)
New Revision: 18514
Trac: http://svn.gnucash.org/trac/changeset/18514

Modified:
   gnucash/trunk/src/register/ledger-core/split-register-util.c
Log:
Reset found_trans_split when the transaction being considered in gnc_split_register_find_split
turns out to be the wrong one.

Modified: gnucash/trunk/src/register/ledger-core/split-register-util.c
===================================================================
--- gnucash/trunk/src/register/ledger-core/split-register-util.c	2009-12-17 07:26:13 UTC (rev 18513)
+++ gnucash/trunk/src/register/ledger-core/split-register-util.c	2009-12-17 07:28:30 UTC (rev 18514)
@@ -248,9 +248,10 @@
       }
       else
       {
-        /* Not the correct transaction.  We shouldn't get here if this is true, but just
-           to be safe reset it. */
+        /* Not the correct transaction.  We shouldn't get here if these are true, but just 
+           to be safe reset them. */
         found_trans = FALSE;
+        found_trans_split = FALSE;
       }
 
       if (found_trans && (s == split) && s)



More information about the gnucash-changes mailing list