Browse Source

Check for clear-image-cache before using it

* lisp/org.el (org-display-inline-images): Check for clear-image-cache
before using it.
Dan Davison 14 years ago
parent
commit
6eaad22a37
1 changed files with 1 additions and 1 deletions
  1. 1 1
      lisp/org.el

+ 1 - 1
lisp/org.el

@@ -16198,7 +16198,7 @@ BEG and END default to the buffer boundaries."
   (interactive "P")
   (unless refresh
     (org-remove-inline-images)
-    (clear-image-cache))
+    (if (fboundp 'clear-image-cache) (clear-image-cache)))
   (save-excursion
     (save-restriction
       (widen)