diff options
Diffstat (limited to 'lisp/image-mode.el')
-rw-r--r-- | lisp/image-mode.el | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lisp/image-mode.el b/lisp/image-mode.el index b903d497ec0..4abef663eb0 100644 --- a/lisp/image-mode.el +++ b/lisp/image-mode.el @@ -209,7 +209,7 @@ to toggle between display as an image and display as text." (setq major-mode 'image-mode) (add-hook 'change-major-mode-hook 'image-toggle-display-text nil t) (if (display-images-p) - (if (not (image-get-display-property)) + (if (not (get-text-property (point-min) 'display)) (image-toggle-display) ;; Set next vars when image is already displayed but local ;; variables were cleared by kill-all-local-variables |