changeset 2397:e371af9d2caf

Stop animation if no file is showing.
author Christian Heckendorf <heckendorfc@gmail.com>
date Sat, 27 Aug 2016 14:32:33 -0400
parents 00faf5a63f6c
children b3a4872334da
files src/layout_image.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/layout_image.c	Fri Aug 26 18:38:51 2016 -0400
+++ b/src/layout_image.c	Sat Aug 27 14:32:33 2016 -0400
@@ -339,7 +339,7 @@
 {
 	if (!layout_valid(&lw)) return FALSE;
 
-	if(!lw->options.animate)
+	if(!lw->options.animate || lw->image->image_fd == NULL)
 		{
 		if(lw->animation)
 			{