[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.
This commit is contained in:
Christopher Lam 2020-12-07 20:45:09 +08:00
parent 6e57ce193b
commit 6b847dca76

View File

@ -572,6 +572,12 @@ developing over time"))
((null? (gnc-account-get-children acct)) ((null? (gnc-account-get-children acct))
(gnc:account-anchor-text 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 (else
(gnc:make-report-anchor (gnc:make-report-anchor
reportguid report-obj reportguid report-obj