Mercurial > emacs
diff lisp/image-mode.el @ 97947:ab6494b53df0
Merge from emacs--rel--22
Revision: emacs@sv.gnu.org/emacs--devo--0--patch-1398
author | Miles Bader <miles@gnu.org> |
---|---|
date | Tue, 02 Sep 2008 05:35:54 +0000 |
parents | b9d3eb039500 5b546e629ab2 |
children | a9dc0e7c3f2b |
line wrap: on
line diff
--- a/lisp/image-mode.el Tue Sep 02 02:43:52 2008 +0000 +++ b/lisp/image-mode.el Tue Sep 02 05:35:54 2008 +0000 @@ -332,7 +332,7 @@ (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