diff --git a/lisp/org-macs.el b/lisp/org-macs.el index 7efe41314..dc0c42b6f 100644 --- a/lisp/org-macs.el +++ b/lisp/org-macs.el @@ -895,7 +895,8 @@ delimiting S." (let ((width (plist-get props :width))) (and (wholenump width) width))) (`(image . ,_) - (ceiling (car (image-size spec)))) + (and (fboundp 'image-size) + (ceiling (car (image-size spec))))) ((pred stringp) ;; Displayed string could contain invisible parts, ;; but no nested display.