r17136 - gnucash/branches/2.2/src/register/ledger-core - [r17077] Bug #166101: Do not overwrite first split (blank_split) of a transaction.
Andreas Köhler
andi5 at cvs.gnucash.org
Sat Apr 26 12:50:04 EDT 2008
Author: andi5
Date: 2008-04-26 12:50:04 -0400 (Sat, 26 Apr 2008)
New Revision: 17136
Trac: http://svn.gnucash.org/trac/changeset/17136
Modified:
gnucash/branches/2.2/src/register/ledger-core/split-register.c
Log:
[r17077] 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.
Modified: gnucash/branches/2.2/src/register/ledger-core/split-register.c
===================================================================
--- gnucash/branches/2.2/src/register/ledger-core/split-register.c 2008-04-26 16:49:55 UTC (rev 17135)
+++ gnucash/branches/2.2/src/register/ledger-core/split-register.c 2008-04-26 16:50:04 UTC (rev 17136)
@@ -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