mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
Revert a stray, unrelated change from r23556
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@23564 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
parent
0ecc6caa63
commit
5c7bc36a21
@ -880,7 +880,7 @@ gnc_split_register_auto_completion (SplitRegister *reg,
|
|||||||
gnc_get_current_book ());
|
gnc_get_current_book ());
|
||||||
g_assert(pending_trans == trans);
|
g_assert(pending_trans == trans);
|
||||||
|
|
||||||
xaccTransCopyOnto (auto_trans, trans);
|
gnc_copy_trans_onto_trans (auto_trans, trans, FALSE, FALSE);
|
||||||
blank_split = NULL;
|
blank_split = NULL;
|
||||||
|
|
||||||
if (gnc_split_register_get_default_account (reg) != NULL)
|
if (gnc_split_register_get_default_account (reg) != NULL)
|
||||||
|
@ -630,9 +630,10 @@ gnc_split_register_duplicate_current (SplitRegister *reg)
|
|||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
new_trans = xaccTransClone (trans);
|
new_trans = xaccMallocTransaction (gnc_get_current_book ());
|
||||||
|
|
||||||
xaccTransBeginEdit (new_trans);
|
xaccTransBeginEdit (new_trans);
|
||||||
|
gnc_copy_trans_onto_trans (trans, new_trans, FALSE, FALSE);
|
||||||
xaccTransSetDatePostedSecsNormalized (new_trans, date);
|
xaccTransSetDatePostedSecsNormalized (new_trans, date);
|
||||||
/* We also must set a new DateEntered on the new entry
|
/* We also must set a new DateEntered on the new entry
|
||||||
* because otherwise the ordering is not deterministic */
|
* because otherwise the ordering is not deterministic */
|
||||||
|
Loading…
Reference in New Issue
Block a user