AUDIT: r17077 - gnucash/trunk/src/register/ledger-core - Bug #166101: Do not overwrite first split (blank_split) of a transaction.
Andreas Köhler
andi5 at cvs.gnucash.org
Sat Apr 12 15:17:50 EDT 2008
Author: andi5
Date: 2008-04-12 15:17:50 -0400 (Sat, 12 Apr 2008)
New Revision: 17077
Trac: http://svn.gnucash.org/trac/changeset/17077
Modified:
gnucash/trunk/src/register/ledger-core/split-register.c
Log:
Bug #166101: Do not overwrite first split (blank_split) of a transaction.
When entering a split transaction, the account of the top-most split is
set to the register's anchor account, even if the user chose something
different. Avoid this by checking a flag first which signals whether
the split has been modified.
BP
Modified: gnucash/trunk/src/register/ledger-core/split-register.c
===================================================================
--- gnucash/trunk/src/register/ledger-core/split-register.c 2008-04-12 18:28:59 UTC (rev 17076)
+++ gnucash/trunk/src/register/ledger-core/split-register.c 2008-04-12 19:17:50 UTC (rev 17077)
@@ -1400,7 +1400,7 @@
g_assert(xaccTransIsOpen(trans));
/* If we are committing the blank split, add it to the account now */
- if (trans == blank_trans)
+ if (split == blank_split && !info->blank_split_edited)
{
account = gnc_split_register_get_default_account(reg);
if (account)
More information about the gnucash-changes
mailing list