Browse Source

Fixed an incorrect variable reference

John Wiegley 15 years ago
parent
commit
9b36ab0ca9
2 changed files with 4 additions and 1 deletions
  1. 3 0
      lisp/ChangeLog
  2. 1 1
      lisp/org-clock.el

+ 3 - 0
lisp/ChangeLog

@@ -1,5 +1,8 @@
 2009-10-20  John Wiegley  <jwiegley@gmail.com>
 
+	* org-clock.el (org-clock-resolve-clock): Fixed an incorrect
+	variable reference.
+
 	* org-agenda.el (org-agenda-set-mode-name): Show Habit in the
 	modeline when habits are being displayed (if that module is being
 	loaded).

+ 1 - 1
lisp/org-clock.el

@@ -645,7 +645,7 @@ This routine can do one of many things:
       (org-clock-clock-out clock fail-quietly resolve-to)
       (unless org-clock-clocking-in
 	(if close-p
-	    (setq org-clock-left-over-time last-valid)
+	    (setq org-clock-left-over-time resolve-to)
 	  (org-clock-clock-in clock)))))))
 
 (defun org-clock-resolve (clock &optional prompt-fn last-valid fail-quietly)