Don't bug out on non-Emacs images.
authorLars Magne Ingebrigtsen <larsi@quimbies.gnus.org>
Mon, 30 Aug 2010 20:52:25 +0000 (22:52 +0200)
committerLars Magne Ingebrigtsen <larsi@quimbies.gnus.org>
Mon, 30 Aug 2010 20:52:25 +0000 (22:52 +0200)
lisp/gnus-html.el

index cabfe34..6ce681b 100644 (file)
        (if (and image
                 ;; Kludge to avoid displaying 30x30 gif images, which
                 ;; seems to be a signal of a broken image.
-                (not (and (eq (getf (cdr image) :type) 'gif)
+                (not (and (listp image)
+                          (eq (getf (cdr image) :type) 'gif)
                           (= (car (image-size image t)) 30)
                           (= (cdr (image-size image t)) 30))))
            (progn