r21524 - gnucash/trunk/src/engine - Fix error in gnc_account_get_descendants_sorted
John Ralls
jralls at code.gnucash.org
Sat Nov 5 19:04:34 EDT 2011
Author: jralls
Date: 2011-11-05 19:04:34 -0400 (Sat, 05 Nov 2011)
New Revision: 21524
Trac: http://svn.gnucash.org/trac/changeset/21524
Modified:
gnucash/trunk/src/engine/Account.c
Log:
Fix error in gnc_account_get_descendants_sorted
Recursed to the wrong function, which caused sub-accounts to not be sorted.
Modified: gnucash/trunk/src/engine/Account.c
===================================================================
--- gnucash/trunk/src/engine/Account.c 2011-11-05 23:04:23 UTC (rev 21523)
+++ gnucash/trunk/src/engine/Account.c 2011-11-05 23:04:34 UTC (rev 21524)
@@ -2722,7 +2722,7 @@
{
descendants = g_list_append(descendants, child->data);
descendants = g_list_concat(descendants,
- gnc_account_get_descendants(child->data));
+ gnc_account_get_descendants_sorted(child->data));
}
g_list_free(children);
return descendants;
More information about the gnucash-changes
mailing list