org-e-odt.el: Fix earlier commit

Handle the case when latex fragment/environment fails to yield an
image or formula file.
This commit is contained in:
Jambunathan K 2012-09-14 02:39:54 +05:30
parent 3501be303e
commit dd44a62c7e
1 changed files with 1 additions and 1 deletions

View File

@ -3469,7 +3469,7 @@ contextual information."
(buffer-substring-no-properties (buffer-substring-no-properties
(point-min) (point-max))))) (point-min) (point-max)))))
(if (not (string-match "file:\\([^]]*\\)" link)) (if (not (string-match "file:\\([^]]*\\)" link))
(message "LaTeX Conversion failed.") (prog1 nil (message "LaTeX Conversion failed."))
link)))) link))))
(when org-link (when org-link
;; Conversion succeeded. Parse above Org-style link to a ;; Conversion succeeded. Parse above Org-style link to a