]> git.eshelyaron.com Git - emacs.git/commitdiff
* gnus-art.el (article-display-face): Handle failure in gnus-create-image.
authorChong Yidong <cyd@gnu.org>
Tue, 14 Aug 2012 05:34:20 +0000 (13:34 +0800)
committerChong Yidong <cyd@gnu.org>
Tue, 14 Aug 2012 05:34:20 +0000 (13:34 +0800)
Fixes: debbugs:11802
lisp/gnus/ChangeLog
lisp/gnus/gnus-art.el

index 7f2a7536717ac82a754c2c89cb905d86a145664c..df35e998c31b68aedbd24f8a403df2b9e6393cd6 100644 (file)
@@ -1,3 +1,8 @@
+2012-08-14  Chong Yidong  <cyd@gnu.org>
+
+       * gnus-art.el (article-display-face): Handle failure in
+       gnus-create-image (Bug#11802).
+
 2012-08-10  Stefan Monnier  <monnier@iro.umontreal.ca>
 
        * gnus-agent.el (gnus-agent-cat-defaccessor, gnus-agent-cat-groups):
index bb374fba11b1f81d5c2866978bed404b33182eb4..b9020a40b7502e3a9074509205470c285379c66d 100644 (file)
@@ -2437,9 +2437,10 @@ long lines if and only if arg is positive."
                        (apply 'gnus-create-image png 'png t
                               (cdr (assq 'png gnus-face-properties-alist))))
                  (goto-char from)
-                 (gnus-add-wash-type 'face)
-                 (gnus-add-image 'face image)
-                 (gnus-put-image image nil 'face))))))))))
+                 (when image
+                   (gnus-add-wash-type 'face)
+                   (gnus-add-image 'face image)
+                   (gnus-put-image image nil 'face)))))))))))
 
 (defun article-display-x-face (&optional force)
   "Look for an X-Face header and display it if present."