Stop animation if no file is showing.
authorChristian Heckendorf <heckendorfc@gmail.com>
Sat, 27 Aug 2016 18:32:33 +0000 (14:32 -0400)
committerChristian Heckendorf <heckendorfc@gmail.com>
Sat, 27 Aug 2016 18:32:33 +0000 (14:32 -0400)
src/layout_image.c

index 9df1b2e..08fd398 100644 (file)
@@ -339,7 +339,7 @@ gboolean layout_image_animate_check(LayoutWindow *lw)
 {
        if (!layout_valid(&lw)) return FALSE;
 
-       if(!lw->options.animate)
+       if(!lw->options.animate || lw->image->image_fd == NULL)
                {
                if(lw->animation)
                        {