[Org] Fix condition on when to include the current clock during reporting
This commit is contained in:
parent
17b5d9fecb
commit
41a57ecd96
|
@ -1020,10 +1020,10 @@ limits, but it is always true that TSTART ≤ END or START ≤ TEND."
|
||||||
(when (and org-clock-report-include-clocking-task
|
(when (and org-clock-report-include-clocking-task
|
||||||
(eq (org-clocking-buffer) (current-buffer))
|
(eq (org-clocking-buffer) (current-buffer))
|
||||||
(eq (marker-position org-clock-hd-marker) (point))
|
(eq (marker-position org-clock-hd-marker) (point))
|
||||||
tstart
|
(or (and tstart
|
||||||
tend
|
(<= tstart (float-time org-clock-start-time)))
|
||||||
(>= (float-time org-clock-start-time) tstart)
|
(and tend
|
||||||
(<= (float-time org-clock-start-time) tend))
|
(<= (float-time) tend))))
|
||||||
(push (cons (float-time org-clock-start-time) (float-time))
|
(push (cons (float-time org-clock-start-time) (float-time))
|
||||||
times))
|
times))
|
||||||
(when (not (null times))
|
(when (not (null times))
|
||||||
|
|
Loading…
Reference in New Issue