Przeglądaj źródła

Merge branch 'km/from-emacs-master'

Kyle Meyer 4 lat temu
rodzic
commit
e2e89cea87
1 zmienionych plików z 2 dodań i 1 usunięć
  1. 2 1
      lisp/org-macs.el

+ 2 - 1
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.