Commit 925c0a64 authored by Sven Neumann's avatar Sven Neumann Committed by Sven Neumann
Browse files

invalidate layer previews when the colormap changes. Fixes bug #301033.

2005-04-18  Sven Neumann  <neumann@jpk.com>

	* app/core/gimpimage.c (gimp_image_real_colormap_changed):
	invalidate layer previews when the colormap changes. Fixes
	bug #301033.
parent 88378adf
2005-04-18 Sven Neumann <neumann@jpk.com>
* app/core/gimpimage.c (gimp_image_real_colormap_changed):
invalidate layer previews when the colormap changes. Fixes
bug #301033.
2005-04-18 Michael Natterer <mitch@gimp.org>
* app/widgets/gimpsamplepointeditor.[ch]: Connect to the
......
......@@ -1069,11 +1069,13 @@ gimp_image_real_colormap_changed (GimpImage *gimage,
{
if (gimp_image_base_type (gimage) == GIMP_INDEXED)
{
gimp_image_color_hash_invalidate (gimage, color_index);
/* A colormap alteration affects the whole image */
gimp_image_update (gimage, 0, 0, gimage->width, gimage->height);
gimp_viewable_invalidate_preview (GIMP_VIEWABLE (gimage));
gimp_image_color_hash_invalidate (gimage, color_index);
gimp_image_invalidate_layer_previews (gimage);
gimp_viewable_invalidate_preview (GIMP_VIEWABLE (gimage));
}
}
......
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