If we can't display the image, then display a broken lock instead.
authorLars Magne Ingebrigtsen <larsi@quimbies.gnus.org>
Sun, 29 Aug 2010 14:04:29 +0000 (16:04 +0200)
committerLars Magne Ingebrigtsen <larsi@quimbies.gnus.org>
Sun, 29 Aug 2010 14:04:29 +0000 (16:04 +0200)
lisp/gnus-html.el

index 976da85..f6cf00d 100644 (file)
 (defun gnus-html-put-image (file point)
   (let ((image (ignore-errors
                 (create-image file))))
-    (when image
-      (put-image image point)
-      t)))
+    (if image
+       (progn
+         (put-image image point)
+         t)
+      (put-image (find-image '((:type xpm :file "lock-broken.xpm")))
+                point)
+      nil)))
 
 (defun gnus-html-prune-cache ()
   (let ((total-size 0)