Browse Source

org-icalendar.el: Fix bug about handling `alarm-time'

* org-icalendar.el (org-print-icalendar-entries): Fix bug
about handling `alarm-time'.

Thanks to Charles Philip Chan for reporting this.
Bastien Guerry 12 years ago
parent
commit
7f6a127e46
1 changed files with 1 additions and 1 deletions
  1. 1 1
      lisp/org-icalendar.el

+ 1 - 1
lisp/org-icalendar.el

@@ -360,7 +360,7 @@ When COMBINE is non nil, add the category to each line."
 		      (or (org-id-get) (org-id-new)))
 		categories (org-export-get-categories)
 		alarm-time (org-entry-get nil "APPT_WARNTIME")
-		alarm-time (when alarm-time (string-to-number alarm-time))
+		alarm-time (if alarm-time (string-to-number alarm-time) 0)
 		alarm ""
 		deadlinep nil scheduledp nil)
 	  (if (looking-at re2)