gnucash maint: [category-barchart] don't drill down after acct lvl 6
Christopher Lam
clam at code.gnucash.org
Mon Dec 7 08:22:27 EST 2020
Updated via https://github.com/Gnucash/gnucash/commit/6b847dca (commit)
from https://github.com/Gnucash/gnucash/commit/6e57ce19 (commit)
commit 6b847dca7615549e29acf8e93ddea125d4d9fbd2
Author: Christopher Lam <christopher.lck at gmail.com>
Date: Mon Dec 7 20:45:09 2020 +0800
[category-barchart] don't drill down after acct lvl 6
https://lists.gnucash.org/pipermail/gnucash-user/2020-December/094231.html
This relates to the click to drill-down into next account depth. It
increases account depth. The maximum must be 6.
diff --git a/gnucash/report/reports/standard/category-barchart.scm b/gnucash/report/reports/standard/category-barchart.scm
index fc85be08c..93e7af194 100644
--- a/gnucash/report/reports/standard/category-barchart.scm
+++ b/gnucash/report/reports/standard/category-barchart.scm
@@ -572,6 +572,12 @@ developing over time"))
((null? (gnc-account-get-children acct))
(gnc:account-anchor-text acct))
+ ;; because the tree-depth option for
+ ;; accounts/levels goes up to 6. FIXME:
+ ;; magic number.
+ ((>= tree-depth 6)
+ (gnc:account-anchor-text acct))
+
(else
(gnc:make-report-anchor
reportguid report-obj
Summary of changes:
gnucash/report/reports/standard/category-barchart.scm | 6 ++++++
1 file changed, 6 insertions(+)
More information about the gnucash-changes
mailing list