1
0
mirror of https://git.savannah.gnu.org/git/emacs/org-mode.git synced 2024-11-27 07:37:25 +00:00

org-odt.el: Do clear-image-cache' before create-image'

This commit is contained in:
Jambunathan K 2012-01-31 11:31:19 +05:30
parent c90ea7a979
commit 171ead5dc8

View File

@ -1966,7 +1966,8 @@ ATTR is a string of other attributes of the a element."
(pixels-to-cms (cdr size-in-pixels)))))))
(case probe-method
(emacs
(size-in-cms (ignore-errors (image-size (create-image file) 'pixels))))
(size-in-cms (ignore-errors (clear-image-cache)
(image-size (create-image file) 'pixels))))
(imagemagick
(size-in-cms
(let ((dim (shell-command-to-string