diff options
| author | Lars Ingebrigtsen <larsi@gnus.org> | 2018-04-11 19:31:37 +0200 |
|---|---|---|
| committer | Lars Ingebrigtsen <larsi@gnus.org> | 2018-04-11 19:32:17 +0200 |
| commit | 556feab8a0ec95953723cff6aacfeaf795d9242f (patch) | |
| tree | 1f865a1c1ef766bdf1f666f058982d412f0c1d9f /lisp/gnus/gnus-util.el | |
| parent | e243da257d05c95be7373c37fedc6cc3b35aca9c (diff) | |
| download | emacs-556feab8a0ec95953723cff6aacfeaf795d9242f.tar.gz | |
Always rescale images in gnus-rescale-image
* lisp/gnus/gnus-util.el (gnus-rescale-image): Rescale images even
if we don't have a visible article buffer. Reported and fix
suggested by Kevin Brubeck Unhammer.
Diffstat (limited to 'lisp/gnus/gnus-util.el')
| -rw-r--r-- | lisp/gnus/gnus-util.el | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lisp/gnus/gnus-util.el b/lisp/gnus/gnus-util.el index 932ae5b5411..1001d11df4f 100644 --- a/lisp/gnus/gnus-util.el +++ b/lisp/gnus/gnus-util.el @@ -1615,8 +1615,7 @@ empty directories from OLD-PATH." "Rescale IMAGE to SIZE if possible. SIZE is in format (WIDTH . HEIGHT). Return a new image. Sizes are in pixels." - (if (or (not (fboundp 'imagemagick-types)) - (not (get-buffer-window (current-buffer)))) + (if (not (fboundp 'imagemagick-types)) image (let ((new-width (car size)) (new-height (cdr size))) |
