libgimp: fix NULL colormap for gimp_drawable_get_format()
This commit is contained in:

committed by
Michael Natterer

parent
99c5830e84
commit
43cce00fd9
@ -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
|
||||
{
|
||||
|
Reference in New Issue
Block a user