[gimp] plug-ins: fix #5315 Opening FLI with one frame fails
- From: Jacob Boerema <jboerema src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp] plug-ins: fix #5315 Opening FLI with one frame fails
- Date: Sat, 7 May 2022 18:19:49 +0000 (UTC)
commit d143a2d55f6b490ae957eeaa0474a9c23e7a087e
Author: Jacob Boerema <jgboerema gmail com>
Date: Sat May 7 12:56:53 2022 -0400
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.
plug-ins/file-fli/fli-gimp.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/plug-ins/file-fli/fli-gimp.c b/plug-ins/file-fli/fli-gimp.c
index 3565e75b56..19d651c737 100644
--- a/plug-ins/file-fli/fli-gimp.c
+++ b/plug-ins/file-fli/fli-gimp.c
@@ -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);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]