mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
Fix bug.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@3556 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
parent
aafa9b943d
commit
e59e0c71b7
@ -4465,6 +4465,7 @@ xaccSRLoadRegister (SplitRegister *reg, GList * slist,
|
|||||||
SplitRegisterBuffer *reg_buffer;
|
SplitRegisterBuffer *reg_buffer;
|
||||||
GHashTable *trans_table = NULL;
|
GHashTable *trans_table = NULL;
|
||||||
CellBlock *lead_cursor;
|
CellBlock *lead_cursor;
|
||||||
|
Transaction *blank_trans;
|
||||||
Transaction *find_trans;
|
Transaction *find_trans;
|
||||||
Transaction *trans;
|
Transaction *trans;
|
||||||
CursorClass find_class;
|
CursorClass find_class;
|
||||||
@ -4511,6 +4512,8 @@ xaccSRLoadRegister (SplitRegister *reg, GList * slist,
|
|||||||
gnc_resume_gui_refresh ();
|
gnc_resume_gui_refresh ();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
blank_trans = xaccSplitGetParent (blank_split);
|
||||||
|
|
||||||
info->default_account = *xaccAccountGetGUID (default_account);
|
info->default_account = *xaccAccountGetGUID (default_account);
|
||||||
|
|
||||||
table = reg->table;
|
table = reg->table;
|
||||||
@ -4623,8 +4626,12 @@ xaccSRLoadRegister (SplitRegister *reg, GList * slist,
|
|||||||
|
|
||||||
if (multi_line)
|
if (multi_line)
|
||||||
{
|
{
|
||||||
|
if (trans == blank_trans)
|
||||||
|
continue;
|
||||||
|
|
||||||
if (g_hash_table_lookup (trans_table, trans))
|
if (g_hash_table_lookup (trans_table, trans))
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
g_hash_table_insert (trans_table, trans, trans);
|
g_hash_table_insert (trans_table, trans, trans);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user