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:
John Ralls 2013-12-15 17:19:40 +00:00
parent 0ecc6caa63
commit 5c7bc36a21
2 changed files with 3 additions and 2 deletions

View File

@ -880,7 +880,7 @@ gnc_split_register_auto_completion (SplitRegister *reg,
gnc_get_current_book ());
g_assert(pending_trans == trans);
xaccTransCopyOnto (auto_trans, trans);
gnc_copy_trans_onto_trans (auto_trans, trans, FALSE, FALSE);
blank_split = NULL;
if (gnc_split_register_get_default_account (reg) != NULL)

View File

@ -630,9 +630,10 @@ gnc_split_register_duplicate_current (SplitRegister *reg)
return NULL;
}
new_trans = xaccTransClone (trans);
new_trans = xaccMallocTransaction (gnc_get_current_book ());
xaccTransBeginEdit (new_trans);
gnc_copy_trans_onto_trans (trans, new_trans, FALSE, FALSE);
xaccTransSetDatePostedSecsNormalized (new_trans, date);
/* We also must set a new DateEntered on the new entry
* because otherwise the ordering is not deterministic */