Browse Source

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

Jambunathan K 13 years ago
parent
commit
171ead5dc8
1 changed files with 2 additions and 1 deletions
  1. 2 1
      lisp/org-odt.el

+ 2 - 1
lisp/org-odt.el

@@ -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