From c3b391a319320ed1a6fd7bd31d83a1f848387d9d Mon Sep 17 00:00:00 2001 From: Rupert Date: Sun, 22 Dec 2024 00:28:38 +0100 Subject: [PATCH] plug-ins: bmp import - call digest_masks() only when needed --- plug-ins/file-bmp/bmp-load.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/plug-ins/file-bmp/bmp-load.c b/plug-ins/file-bmp/bmp-load.c index 2610a6ed31..38ce877aed 100644 --- a/plug-ins/file-bmp/bmp-load.c +++ b/plug-ins/file-bmp/bmp-load.c @@ -544,10 +544,12 @@ load_image (GFile *gfile, GError **error) case BI_BITFIELDS: case BI_ALPHABITFIELDS: read_masks (&bitmap_head.masks[0], fi.masks); + digest_masks (fi.masks); break; case BI_RGB: set_default_masks (bitmap_head.biBitCnt, fi.masks); + digest_masks (fi.masks); break; case BI_OS2_RLE24: @@ -568,7 +570,6 @@ load_image (GFile *gfile, GError **error) gimp_file_get_utf8_name (gfile)); goto out; } - digest_masks (fi.masks); break; case 64: