plug-ins: fix #5315 Opening FLI with one frame fails

Fix as suggested by Lloyd Konneker.
Even though a one frame animation isn't really an animation, there is no
reason why we can't or shouldn't load it.
This commit is contained in:
Jacob Boerema 2022-05-07 12:56:53 -04:00
parent 5ecf46ccef
commit d143a2d55f
1 changed files with 1 additions and 1 deletions

View File

@ -544,7 +544,7 @@ load_image (GFile *file,
return NULL;
}
if (from_frame >= fli_header.frames)
if (from_frame > fli_header.frames)
{
/* nothing to do ... */
fclose (fp);