emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] master 4a24af2 1/3: Allow the image scale to be a floating


From: Lars Ingebrigtsen
Subject: [Emacs-diffs] master 4a24af2 1/3: Allow the image scale to be a floating point number
Date: Tue, 09 Feb 2016 02:36:36 +0000

branch: master
commit 4a24af2d2b2be168e37947ceb1a3906eb1da0e55
Author: Lars Ingebrigtsen <address@hidden>
Commit: Lars Ingebrigtsen <address@hidden>

    Allow the image scale to be a floating point number
    
    * src/image.c (compute_image_size): The scale can be a
    floating point number.
---
 src/image.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/image.c b/src/image.c
index bc5863f..ea5d231 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;



reply via email to

[Prev in Thread] Current Thread [Next in Thread]