[Org] Fix condition on when to include the current clock during reporting

This commit is contained in:
Daniel - 2017-12-03 09:27:36 +01:00
parent 17b5d9fecb
commit 41a57ecd96
Signed by: dbo
GPG Key ID: 4F63DB96D45AA9C6
1 changed files with 4 additions and 4 deletions

View File

@ -1020,10 +1020,10 @@ limits, but it is always true that TSTART ≤ END or START ≤ TEND."
(when (and org-clock-report-include-clocking-task
(eq (org-clocking-buffer) (current-buffer))
(eq (marker-position org-clock-hd-marker) (point))
tstart
tend
(>= (float-time org-clock-start-time) tstart)
(<= (float-time org-clock-start-time) tend))
(or (and tstart
(<= tstart (float-time org-clock-start-time)))
(and tend
(<= (float-time) tend))))
(push (cons (float-time org-clock-start-time) (float-time))
times))
(when (not (null times))