r17875 - gnucash/branches/2.2/src/engine - [17867] Bug #569734: Give the template root account a name
Christian Stimming
cstim at cvs.gnucash.org
Tue Feb 3 16:05:25 EST 2009
Author: cstim
Date: 2009-02-03 16:05:25 -0500 (Tue, 03 Feb 2009)
New Revision: 17875
Trac: http://svn.gnucash.org/trac/changeset/17875
Modified:
gnucash/branches/2.2/src/engine/SX-book.c
Log:
[17867] Bug #569734: Give the template root account a name
The template root account created as part of the scheduled transaction
infrastructure should have a name. Various parts of the Gnucash engine get
upset if an account doesn't have a name.
Perhaps this name should be localized, but the name of the main root account is
not localized.
Patch by Mike Alexander.
Modified: gnucash/branches/2.2/src/engine/SX-book.c
===================================================================
--- gnucash/branches/2.2/src/engine/SX-book.c 2009-02-03 21:05:15 UTC (rev 17874)
+++ gnucash/branches/2.2/src/engine/SX-book.c 2009-02-03 21:05:25 UTC (rev 17875)
@@ -116,6 +116,7 @@
root = xaccMallocAccount(book);
xaccAccountBeginEdit(root);
xaccAccountSetType(root, ACCT_TYPE_ROOT);
+ xaccAccountSetName(root, "Template Root");
xaccAccountCommitEdit(root);
gnc_book_set_template_root (book, root);
}
More information about the gnucash-changes
mailing list