Commit 28d9e43f authored by Michael Natterer's avatar Michael Natterer 😴

Bug 792686 - Colormap widget not updated when adding entry

gimp_image_add_colormap_entry(): increment private->n_colors *before*
calling gimp_image_colormap_set_palette_entry() so it actually adds an
entry.
parent 8447e775
......@@ -326,11 +326,11 @@ gimp_image_add_colormap_entry (GimpImage *image,
&private->colormap[private->n_colors * 3 + 1],
&private->colormap[private->n_colors * 3 + 2]);
private->n_colors++;
if (private->palette)
gimp_image_colormap_set_palette_entry (image, private->n_colors - 1);
private->n_colors++;
gimp_image_colormap_changed (image, -1);
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment