changeset 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 ba80844316f4
children 99dee4fe249c
files lisp/image-mode.el
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
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