Skip to content

Commit

Permalink
Stop animation if no file is showing.
Browse files Browse the repository at this point in the history
  • Loading branch information
heckendorfc committed Aug 27, 2016
1 parent 15917d4 commit a27623d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/layout_image.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
Expand Down

0 comments on commit a27623d

Please sign in to comment.