gnucash maint: [account-piecharts] drill-down piechart: tree-depth is at most 6

Christopher Lam clam at code.gnucash.org
Mon Dec 5 01:50:25 EST 2022


Updated	 via  https://github.com/Gnucash/gnucash/commit/36b33262 (commit)
	from  https://github.com/Gnucash/gnucash/commit/094a971c (commit)



commit 36b33262adfd6da3c3fb4426d73ee54d42cf643a
Author: Christopher Lam <christopher.lck at gmail.com>
Date:   Mon Dec 5 07:41:34 2022 +0800

    [account-piecharts] drill-down piechart: tree-depth is at most 6

diff --git a/gnucash/report/reports/standard/account-piecharts.scm b/gnucash/report/reports/standard/account-piecharts.scm
index aa21538b1..76f660e4e 100644
--- a/gnucash/report/reports/standard/account-piecharts.scm
+++ b/gnucash/report/reports/standard/account-piecharts.scm
@@ -504,7 +504,7 @@ balance at a given time"))
                                              (list gnc:pagename-accounts optname-accounts
                                                    (cons acct subaccts))
                                              (list gnc:pagename-accounts optname-levels
-                                                   (+ 1 tree-depth))
+                                                   (min 6 (+ 1 tree-depth)))
                                              (list gnc:pagename-general
                                                    gnc:optname-reportname
                                                    ((if show-fullname?



Summary of changes:
 gnucash/report/reports/standard/account-piecharts.scm | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)



More information about the gnucash-changes mailing list