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
1 changed files with 2 additions and 1 deletions

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