From: Lars Ingebrigtsen Date: Tue, 9 Feb 2016 01:34:48 +0000 (+1100) Subject: Allow the image scale to be a floating point number X-Git-Tag: emacs-26.0.90~2698 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=4a24af2d2b2be168e37947ceb1a3906eb1da0e55;p=emacs.git Allow the image scale to be a floating point number * src/image.c (compute_image_size): The scale can be a floating point number. --- diff --git a/src/image.c b/src/image.c index bc5863f919c..ea5d231720b 100644 --- a/src/image.c +++ b/src/image.c @@ -8085,7 +8085,7 @@ compute_image_size (size_t width, size_t height, desired_height = NATNUMP (value) ? min (XFASTINT (value), INT_MAX) : -1; value = image_spec_value (spec, QCscale, NULL); - if (NATNUMP (value)) + if (NUMBERP (value)) scale = extract_float (value); width = width * scale; height = height * scale;