Explorar o código

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

Jambunathan K %!s(int64=13) %!d(string=hai) anos
pai
achega
171ead5dc8
Modificáronse 1 ficheiros con 2 adicións e 1 borrados
  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