summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lisp/image.el4
1 files changed, 2 insertions, 2 deletions
diff --git a/lisp/image.el b/lisp/image.el
index 272cee53e4..791a902a1b 100644
--- a/lisp/image.el
+++ b/lisp/image.el
@@ -957,7 +957,7 @@ If N is 3, then the image size will be increased by 30%. The
default is 20%."
(interactive "P")
(image--change-size (if n
- (1+ (/ n 10))
+ (1+ (/ n 10.0))
1.2)))
(defun image-decrease-size (n)
@@ -966,7 +966,7 @@ If N is 3, then the image size will be decreased by 30%. The
default is 20%."
(interactive "P")
(image--change-size (if n
- (- 1 (/ n 10))
+ (- 1 (/ n 10.0))
0.8)))
(defun image--get-image ()