Browse Source

org-clock: Fix error when using unknown language

* lisp/org-clock.el (org-clocktable-write-default): Be careful
  that (nth 4 lwords) and (nth 5 lwords) can be nil, if :lang as an
  unknown value.
Nicolas Goaziou 8 years ago
parent
commit
7ca2e027a6
1 changed files with 2 additions and 2 deletions
  1. 2 2
      lisp/org-clock.el

+ 2 - 2
lisp/org-clock.el

@@ -2543,8 +2543,8 @@ from the dynamic block definition."
      (if properties			;properties columns, maybe
 	 (concat (mapconcat #'identity properties "|") "|")
        "")
-     (nth 4 lwords) "|"			;headline
-     (nth 5 lwords) "|"			;time column
+     (concat (nth 4 lwords) "|")	;headline
+     (concat (nth 5 lwords) "|")	;time column
      (make-string (max 0 (1- (min maxlevel (or ntcol 100))))
 		  ?|)			;other time columns
      (if (eq formula '%) "%|\n" "\n"))