Skip to content

Commit

Permalink
Backport commit 06d716147 from Emacs
Browse files Browse the repository at this point in the history
Fix some no-X build warnings
06d7161476255c77defa119fffa842b7abaa0dcb
Lars Ingebrigtsen
Mon Aug 22 19:22:33 2022 +0200
  • Loading branch information
larsmagne authored and kyleam committed Oct 4, 2022
1 parent add8552 commit 9c2bc28
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lisp/org-plot.el
Original file line number Diff line number Diff line change
Expand Up @@ -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))))))

;;-----------------------------------------------------------------------------
Expand Down

0 comments on commit 9c2bc28

Please sign in to comment.