From 5b9b685d4bad6f26af920fbc0150b122c3680718 Mon Sep 17 00:00:00 2001 From: Charles Day Date: Wed, 25 Feb 2009 16:50:30 +0000 Subject: [PATCH] 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 --- src/register/ledger-core/split-register-load.c | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/src/register/ledger-core/split-register-load.c b/src/register/ledger-core/split-register-load.c index e76e9d2b18..276948ab60 100644 --- a/src/register/ledger-core/split-register-load.c +++ b/src/register/ledger-core/split-register-load.c @@ -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;