From 171ead5dc88f0cc19b2e84088411971e0285e428 Mon Sep 17 00:00:00 2001 From: Jambunathan K Date: Tue, 31 Jan 2012 11:31:19 +0530 Subject: [PATCH] org-odt.el: Do `clear-image-cache' before `create-image' --- lisp/org-odt.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lisp/org-odt.el b/lisp/org-odt.el index 822e62fd9..c627bd111 100644 --- a/lisp/org-odt.el +++ b/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 -- 2.11.4.GIT