Commit f76b79ae authored by William Skaggs's avatar William Skaggs
Browse files

Bill Skaggs <weskaggs@primate.ucdavis.edu>

	* app/core/gimpimage-convert.c: check for non-empty palette
	before converting to indexed using custom palette, otherwise
	show warning and abort;	fixes bug #170973.
parent 65237901
2005-03-20 Bill Skaggs <weskaggs@primate.ucdavis.edu>
* app/core/gimpimage-convert.c: check for non-empty palette
before converting to indexed using custom palette, otherwise
show warning and abort; fixes bug #170973.
2005-03-20 Bill Skaggs <weskaggs@primate.ucdavis.edu>
* app/core/gimpimage-convert.c: applied patch from Adam
......
......@@ -798,6 +798,13 @@ gimp_image_convert (GimpImage *gimage,
g_return_if_fail (new_type != gimp_image_base_type (gimage));
g_return_if_fail (progress == NULL || GIMP_IS_PROGRESS (progress));
if (palette_type == GIMP_CUSTOM_PALETTE)
if (! custom_palette || ! custom_palette->n_colors)
{
g_message (_("Cannot convert image, palette is empty"));
return;
}
theCustomPalette = custom_palette;
gimp_set_busy (gimage->gimp);
......
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