From 2065db7fe746611b78dbf979be3277de99856619 Mon Sep 17 00:00:00 2001 From: Alx Sa Date: Sat, 17 Jun 2023 04:42:34 +0000 Subject: [PATCH] plug-ins: Don't load image for ICO thumbnail Due to a small typo, GIMP always loaded the entire image as a thumbnail even if a suitable one was found. This patch fixes that typo. --- plug-ins/file-ico/ico.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plug-ins/file-ico/ico.c b/plug-ins/file-ico/ico.c index 48e2c98aeb..aa2fc3a322 100644 --- a/plug-ins/file-ico/ico.c +++ b/plug-ins/file-ico/ico.c @@ -502,7 +502,7 @@ ico_load_thumb (GimpProcedure *procedure, image = ico_load_thumbnail_image (file, &width, &height, 0, &error); - if (image) + if (! image) return gimp_procedure_new_return_values (procedure, GIMP_PDB_EXECUTION_ERROR, error); @@ -541,7 +541,7 @@ ani_load_thumb (GimpProcedure *procedure, image = ani_load_image (file, TRUE, &width, &height, &error); - if (image) + if (! image) return gimp_procedure_new_return_values (procedure, GIMP_PDB_EXECUTION_ERROR, error);