mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
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:
parent
199c0c309d
commit
5b9b685d4b
@ -507,15 +507,13 @@ gnc_split_register_load (SplitRegister *reg, GList * slist,
|
|||||||
if (pending_trans == trans)
|
if (pending_trans == trans)
|
||||||
found_pending = TRUE;
|
found_pending = TRUE;
|
||||||
|
|
||||||
/* do not load the blank split */
|
/* Do not load splits from the blank transaction. */
|
||||||
if (split == blank_split)
|
if (trans == blank_trans)
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
if (multi_line)
|
if (multi_line)
|
||||||
{
|
{
|
||||||
if (trans == blank_trans)
|
/* Skip this split if its transaction has already been loaded. */
|
||||||
continue;
|
|
||||||
|
|
||||||
if (g_hash_table_lookup (trans_table, trans))
|
if (g_hash_table_lookup (trans_table, trans))
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user