From 7b46656f7d6bcca68e9ce095710412df2eaf7d0f Mon Sep 17 00:00:00 2001 From: Michael Natterer Date: Wed, 11 Apr 2012 21:51:33 +0200 Subject: [PATCH] app: name the image's palette formats "-gimp-indexed-format-image_id" --- app/core/gimpimage-colormap.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/app/core/gimpimage-colormap.c b/app/core/gimpimage-colormap.c index 67168a1895..da66cc09d7 100644 --- a/app/core/gimpimage-colormap.c +++ b/app/core/gimpimage-colormap.c @@ -73,9 +73,14 @@ gimp_image_colormap_init (GimpImage *image) if (! private->babl_palette_rgb) { - babl_new_palette (NULL, + gchar *format_name = g_strdup_printf ("-gimp-indexed-format-%d", + gimp_image_get_ID (image)); + + babl_new_palette (format_name, &private->babl_palette_rgb, &private->babl_palette_rgba); + + g_free (format_name); } gimp_palette_set_columns (private->palette, 16);