mirror of
https://gitlab.gnome.org/GNOME/gimp.git
synced 2025-07-03 17:33:25 +00:00
libgimp: fix NULL colormap for gimp_drawable_get_format()
This commit is contained in:
parent
99c5830e84
commit
43cce00fd9
1 changed files with 7 additions and 6 deletions
|
@ -777,12 +777,13 @@ gimp_drawable_get_format (gint32 drawable_ID)
|
|||
format = palette;
|
||||
}
|
||||
|
||||
if (colormap)
|
||||
{
|
||||
babl_palette_set_palette (format,
|
||||
babl_format ("R'G'B' u8"),
|
||||
colormap, n_colors);
|
||||
|
||||
g_free (colormap);
|
||||
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue