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.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@17960 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
Charles Day 2009-02-25 16:50:30 +00:00
parent 199c0c309d
commit 5b9b685d4b

View File

@ -507,15 +507,13 @@ gnc_split_register_load (SplitRegister *reg, GList * slist,
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;