mirror of https://github.com/GNOME/gimp.git
plug-ins: bmp import - call digest_masks() only when needed
This commit is contained in:
parent
df4d741275
commit
c3b391a319
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue