Skip to content

Commit

Permalink
Fix typo in once-loop multiple image condition.
Browse files Browse the repository at this point in the history
  • Loading branch information
hzeller committed Mar 31, 2021
1 parent 2d0b31c commit af738fc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/timg.cc
Original file line number Diff line number Diff line change
Expand Up @@ -701,7 +701,7 @@ int main(int argc, char *argv[]) {
// If nothing is set to limit animations but we have multiple images,
// set some sensible limit.
if (filelist.size() > 1 && present.loops == timg::kNotInitialized
&& present.duration_between_images == Duration::InfiniteFuture()) {
&& present.duration_per_image == Duration::InfiniteFuture()) {
present.loops = 1; // Don't get stuck on the first endless-loop
}

Expand Down

0 comments on commit af738fc

Please sign in to comment.