[balsheet-pnl] change definition of maxindent

previous would find deepest account; it should really find deepest
selected account.
This commit is contained in:
Christopher Lam 2019-07-02 20:35:23 +08:00
parent 6f217165c4
commit 75ab45ac3c

View File

@ -866,7 +866,7 @@ also show overall period profit & loss."))
(multicol-table-right (if enable-dual-columns? (multicol-table-right (if enable-dual-columns?
(gnc:make-html-table) (gnc:make-html-table)
multicol-table-left)) multicol-table-left))
(maxindent (gnc-account-get-tree-depth (gnc-get-current-root-account)))) (maxindent (apply max (cons 0 (map gnc-account-get-current-depth accounts)))))
(gnc:html-document-set-title! (gnc:html-document-set-title!
doc (with-output-to-string doc (with-output-to-string