summaryrefslogtreecommitdiff
path: root/lisp/image.el
diff options
context:
space:
mode:
Diffstat (limited to 'lisp/image.el')
-rw-r--r--lisp/image.el7
1 files changed, 4 insertions, 3 deletions
diff --git a/lisp/image.el b/lisp/image.el
index ad219361366..08df7d4aa1a 100644
--- a/lisp/image.el
+++ b/lisp/image.el
@@ -792,9 +792,10 @@ If the image has a non-nil :speed property, it acts as a multiplier
for the animation speed. A negative value means to animate in reverse."
(when (and (buffer-live-p (plist-get (cdr image) :animate-buffer))
;; Delayed more than two seconds more than expected.
- (when (> (- (float-time) target-time) 2)
- (message "Stopping animation; animation possibly too big")
- nil))
+ (or (<= (- (float-time) target-time) 2)
+ (progn
+ (message "Stopping animation; animation possibly too big")
+ nil)))
(image-show-frame image n t)
(let* ((speed (image-animate-get-speed image))
(time (float-time))