Procházet zdrojové kódy

Fix bug with org-startup-indented when creating a clock report

Carsten Dominik před 15 roky
rodič
revize
b926869f0d
2 změnil soubory, kde provedl 6 přidání a 1 odebrání
  1. 5 0
      lisp/ChangeLog
  2. 1 1
      lisp/org-indent.el

+ 5 - 0
lisp/ChangeLog

@@ -1,3 +1,8 @@
+2010-01-09  Carsten Dominik  <carsten.dominik@gmail.com>
+
+	* org-indent.el (org-indent-add-properties): Catch case when there
+	is no headline in the buffer.
+
 2010-01-08  Carsten Dominik  <carsten.dominik@gmail.com>
 
 	* org-exp.el (org-html-entities): Add checkmark symbol.

+ 1 - 1
lisp/org-indent.el

@@ -227,7 +227,7 @@ Assumes that BEG is at the beginning of a line."
 	      b  e (list 'line-prefix (aref org-indent-strings n)
 			 'wrap-prefix (aref org-indent-strings n))))
 	   (setq b (1+ (point-at-eol))
-		 n (* level org-indent-indentation-per-level))))))))
+		 n (* (or level 0) org-indent-indentation-per-level))))))))
 
 (defun org-indent-refresh-section ()
   "Refresh indentation properties in the current outline section.