|
@@ -621,7 +621,8 @@ manner suitable for prepending to a user-specified script."
|
|
|
"Find any overlays for IMG-FILE in the current Org buffer, and refresh them."
|
|
|
(dolist (img-overlay org-inline-image-overlays)
|
|
|
(when (string= img-file (plist-get (cdr (overlay-get img-overlay 'display)) :file))
|
|
|
- (when (file-exists-p img-file)
|
|
|
+ (when (and (file-exists-p img-file)
|
|
|
+ (fboundp 'image-flush))
|
|
|
(image-flush (overlay-get img-overlay 'display))))))
|
|
|
|
|
|
;;-----------------------------------------------------------------------------
|