[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] master 821107d: Ignore invalid SVG images
From: |
Lars Ingebrigtsen |
Subject: |
[Emacs-diffs] master 821107d: Ignore invalid SVG images |
Date: |
Thu, 24 Dec 2015 13:40:23 +0000 |
branch: master
commit 821107d53c2e390240d25c036b99ebbf9b4a93b6
Author: Lars Ingebrigtsen <address@hidden>
Commit: Lars Ingebrigtsen <address@hidden>
Ignore invalid SVG images
* shr.el (shr-tag-svg): Ignore SVG images that have no width
or height, because these can't be displayed by ImageMagick,
anyway.
---
lisp/net/shr.el | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
diff --git a/lisp/net/shr.el b/lisp/net/shr.el
index dbf45b8..d51b8c7 100644
--- a/lisp/net/shr.el
+++ b/lisp/net/shr.el
@@ -1152,7 +1152,9 @@ ones, in case fg and bg are nil."
(defun shr-tag-svg (dom)
(when (and (image-type-available-p 'svg)
- (not shr-inhibit-images))
+ (not shr-inhibit-images)
+ (dom-attr dom 'width)
+ (dom-attr dom 'height))
(funcall shr-put-image-function (list (shr-dom-to-xml dom) 'image/svg+xml)
"SVG Image")))
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Emacs-diffs] master 821107d: Ignore invalid SVG images,
Lars Ingebrigtsen <=