From: Lars Ingebrigtsen Date: Wed, 5 Aug 2020 13:02:28 +0000 (+0200) Subject: Fix max-width/height for Message screenshots X-Git-Tag: emacs-28.0.90~6805 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=4b3f44fc97d3cb29fceb47ec5ba16009b6de7152;p=emacs.git Fix max-width/height for Message screenshots * lisp/gnus/message.el (message-insert-screenshot): :max-width/height apparently has to be integers. --- diff --git a/lisp/gnus/message.el b/lisp/gnus/message.el index 378c3b04673..cf2b8eebc30 100644 --- a/lisp/gnus/message.el +++ b/lisp/gnus/message.el @@ -8693,8 +8693,8 @@ used to take the screenshot." (set-mark (point)) (insert-image (create-image image 'png t - :max-width (* (frame-pixel-width) 0.8) - :max-height (* (frame-pixel-height) 0.8) + :max-width (truncate (* (frame-pixel-width) 0.8)) + :max-height (truncate (* (frame-pixel-height) 0.8)) :scale 1) (format "<#part type=\"image/png\" disposition=inline content-transfer-encoding=base64 raw=t>\n%s\n<#/part>" ;; Get a base64 version of the image -- this avoids later