Issue #5386: Gimp crashes when setting AdobeRGB image to Indexed colors.

Similar to the fix of commit c0e605ef for RGB images with a profile as
notified by Massimo.
This commit is contained in:
Jehan 2021-08-05 18:53:15 +02:00
parent 3b2a8f79f0
commit 7982a5d18c
1 changed files with 2 additions and 2 deletions

View File

@ -1203,8 +1203,8 @@ generate_histogram_rgb (CFHistogram histogram,
format = gimp_drawable_get_format (GIMP_DRAWABLE (layer)); format = gimp_drawable_get_format (GIMP_DRAWABLE (layer));
g_return_if_fail (format == babl_format ("R'G'B' u8") || g_return_if_fail (format == babl_format_with_space ("R'G'B' u8", format) ||
format == babl_format ("R'G'B'A u8")); format == babl_format_with_space ("R'G'B'A u8", format));
bpp = babl_format_get_bytes_per_pixel (format); bpp = babl_format_get_bytes_per_pixel (format);
has_alpha = babl_format_has_alpha (format); has_alpha = babl_format_has_alpha (format);