0
0
Fork 1
mirror of https://git.savannah.gnu.org/git/emacs/org-mode.git synced 2024-08-27 18:32:52 +00:00

Protect call to dvipng.

This commit is contained in:
Carsten Dominik 2008-07-23 13:41:39 -07:00
parent 66a41c6298
commit 5ea6de59a1

View file

@ -12417,13 +12417,15 @@ The images can be removed again with \\[org-ctrl-c-ctrl-c]."
(cd dir))
(if (not (file-exists-p dvifile))
(progn (message "Failed to create dvi file from %s" texfile) nil)
(call-process "dvipng" nil nil nil
"-E" "-fg" fg "-bg" bg
"-D" dpi
;;"-x" scale "-y" scale
"-T" "tight"
"-o" pngfile
dvifile)
(condition-case nil
(call-process "dvipng" nil nil nil
"-E" "-fg" fg "-bg" bg
"-D" dpi
;;"-x" scale "-y" scale
"-T" "tight"
"-o" pngfile
dvifile)
(error nil))
(if (not (file-exists-p pngfile))
(progn (message "Failed to create png file from %s" texfile) nil)
;; Use the requested file name and clean up