From 75ab45ac3c6589496bd04d8c6070bb7c9c60daab Mon Sep 17 00:00:00 2001 From: Christopher Lam Date: Tue, 2 Jul 2019 20:35:23 +0800 Subject: [PATCH] [balsheet-pnl] change definition of maxindent previous would find deepest account; it should really find deepest selected account. --- gnucash/report/standard-reports/balsheet-pnl.scm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gnucash/report/standard-reports/balsheet-pnl.scm b/gnucash/report/standard-reports/balsheet-pnl.scm index fd3de167d9..955b8127f1 100644 --- a/gnucash/report/standard-reports/balsheet-pnl.scm +++ b/gnucash/report/standard-reports/balsheet-pnl.scm @@ -866,7 +866,7 @@ also show overall period profit & loss.")) (multicol-table-right (if enable-dual-columns? (gnc:make-html-table) 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! doc (with-output-to-string