]> git.eshelyaron.com Git - emacs.git/commitdiff
(image-mode): Fix 2008-07-19 change.
authorChong Yidong <cyd@stupidchicken.com>
Fri, 29 Aug 2008 05:14:17 +0000 (05:14 +0000)
committerChong Yidong <cyd@stupidchicken.com>
Fri, 29 Aug 2008 05:14:17 +0000 (05:14 +0000)
lisp/image-mode.el

index b903d497ec02cd1d9543667ee3078d6f00ed9c18..4abef663eb05a0fc559468554e402150dfe8d5b4 100644 (file)
@@ -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