* src/business/business-core/gncTaxTable.c: when asking for

the child, return ourself if we're already a child instead
	  of making a (useless) grandchild.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@8432 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
Derek Atkins 2003-05-29 02:44:10 +00:00
parent 0f5ff6f114
commit caeeb3c546
2 changed files with 7 additions and 0 deletions

View File

@ -1,3 +1,9 @@
2003-05-28 Derek Atkins <derek@ihtfp.com>
* src/business/business-core/gncTaxTable.c: when asking for
the child, return ourself if we're already a child instead
of making a (useless) grandchild.
2003-05-28 Christian Stimming <stimming@tuhh.de>
* src/import-export/hbci/gnc-hbci-transfer.c, dialog-hbcitrans.c,

View File

@ -451,6 +451,7 @@ GncTaxTable *gncTaxTableReturnChild (GncTaxTable *table, gboolean make_new)
if (!table) return NULL;
if (table->child) return table->child;
if (table->parent) return table;
if (make_new) {
child = gncTaxTableCopy (table);
gncTaxTableSetChild (table, child);