When computing clock table, remove arbitrary limit on hierarchy depth.

* org-clock.el (org-clock-sum): Enlarge array of per-level clock
  totals as needed on demand.
This commit is contained in:
Ilya Shlyakhter 2014-02-24 12:27:28 -05:00 committed by Bastien Guerry
parent d75fa9febc
commit 9059c8fae0
1 changed files with 2 additions and 0 deletions

View File

@ -1782,6 +1782,8 @@ PROPNAME lets you set a custom text property instead of :org-clock-minutes."
(save-excursion
(save-match-data (funcall headline-filter))))))
(setq level (- (match-end 1) (match-beginning 1)))
(when (>= level lmax)
(setq ltimes (vconcat ltimes (make-vector lmax 0)) lmax (* 2 lmax)))
(when (or (> t1 0) (> (aref ltimes level) 0))
(when (or headline-included headline-forced)
(if headline-included