diff lisp/image-mode.el @ 80768:5b546e629ab2

(image-mode): Fix 2008-07-19 change.
author Chong Yidong <cyd@stupidchicken.com>
date Fri, 29 Aug 2008 05:14:17 +0000
parents bfcd3905d0e4
children ab6494b53df0
line wrap: on
line diff
--- a/lisp/image-mode.el	Fri Aug 29 05:13:58 2008 +0000
+++ b/lisp/image-mode.el	Fri Aug 29 05:14:17 2008 +0000
@@ -209,7 +209,7 @@
   (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