From db35b88ea6c22f12fc1ba4f2c0cbafbe9b275c2f Mon Sep 17 00:00:00 2001 From: Lars Magne Ingebrigtsen Date: Sun, 29 Aug 2010 16:04:29 +0200 Subject: [PATCH] If we can't display the image, then display a broken lock instead. --- lisp/gnus-html.el | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/lisp/gnus-html.el b/lisp/gnus-html.el index 976da851d..f6cf00da3 100644 --- a/lisp/gnus-html.el +++ b/lisp/gnus-html.el @@ -149,9 +149,13 @@ (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) -- 2.34.1