X-Git-Url: http://cgit.sxemacs.org/?a=blobdiff_plain;f=lisp%2Fshr.el;h=9a66dd0c89be5a8a3da5809ef071ca5c63380cff;hb=331faf118601a6693115666283894b37a5ac847f;hp=781584512dd7bfa20f00ca13854b506d2244a63b;hpb=15a65996727617efe97de72cb1e694d4cd59aa67;p=gnus diff --git a/lisp/shr.el b/lisp/shr.el index 781584512..9a66dd0c8 100644 --- a/lisp/shr.el +++ b/lisp/shr.el @@ -612,10 +612,9 @@ size, and full-buffer size." image) (insert alt))) -(defun shr-rescale-image (data &optional force) - "Rescale DATA, if too big, to fit the current buffer. -If FORCE, rescale the image anyway." - (let ((image (create-image data nil t :ascent 100))) +(defun shr-rescale-image (data) + (let* ((max-image-size 0) + (image (create-image data nil t :ascent 100))) (if (or (not (fboundp 'imagemagick-types)) (not (get-buffer-window (current-buffer)))) image