diff options
author | Abdó Roig-Maranges <abdo.roig@gmail.com> | 2012-09-13 20:13:37 +0200 |
---|---|---|
committer | Jambunathan K <kjambunathan@gmail.com> | 2012-09-14 01:09:52 +0530 |
commit | 5029a8bcf9cd9fbc1e5e2ff6b79433b9ffb5c856 (patch) | |
tree | 681510293d902951ba9456abad03d11c8739f172 | |
parent | cedf5190e593781dec0d9bb9e889bcc0f98c7ce4 (diff) | |
download | org-mode-5029a8bcf9cd9fbc1e5e2ff6b79433b9ffb5c856.tar.gz |
fix dvipng latex export with Transparent background
* org.el (org-create-formula-image-with-dvipng): Fixes a bug
introduced in 149cc04782651e74764eb3188f6a6f178fe25f64 that made it
fail with no :foreground and :background attributes set, due to bad
handling of "Transparent" color.
-rw-r--r-- | lisp/org.el | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lisp/org.el b/lisp/org.el index 881dbd5..1c18d70 100644 --- a/lisp/org.el +++ b/lisp/org.el @@ -17612,9 +17612,9 @@ share a good deal of logic." (bg (or (plist-get options (if buffer :background :html-background)) "Transparent"))) (if (eq fg 'default) (setq fg (org-dvipng-color :foreground)) - (setq fg (org-dvipng-color-format fg))) + (unless (string= fg "Transparent") (setq fg (org-dvipng-color-format fg)))) (if (eq bg 'default) (setq bg (org-dvipng-color :background)) - (setq bg (org-dvipng-color-format bg))) + (unless (string= bg "Transparent") (setq bg (org-dvipng-color-format bg)))) (with-temp-file texfile (insert (org-splice-latex-header org-format-latex-header |