Commit b4c00f9a authored by Paul Eggert's avatar Paul Eggert

Fix animation timeout delay calculation

* lisp/image.el (image-animate-timeout):
Don’t assume speed is floating-point.
parent 5110c952
......@@ -735,7 +735,7 @@ for the animation speed. A negative value means to animate in reverse."
;; Subtract off the time we took to load the image from the
;; stated delay time.
(delay (max (+ (* (or (cdr animation) image-default-frame-delay)
(/ 1 (abs speed)))
(/ 1.0 (abs speed)))
time (- (float-time)))
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment