Commit 1fdfba91 authored by EDT 1999  Austin Donnelly's avatar EDT 1999 Austin Donnelly Committed by Austin Donnelly
Browse files

cheesy fix for INDEXEDA core dump: popup a window saying we can't handle

Fri Sep 10 18:36:34 EDT 1999  Austin Donnelly  <austin@gimp.org>

	* plug-ins/common/png.c: cheesy fix for INDEXEDA core dump: popup
	    a window saying we can't handle it.  We should really handle
	    it though.
parent 09ffd828
Fri Sep 10 18:36:34 EDT 1999 Austin Donnelly <austin@gimp.org>
* plug-ins/common/png.c: cheesy fix for INDEXEDA core dump: popup
a window saying we can't handle it. We should really handle
it though.
Thu Sep 9 21:29:16 PDT 1999 Manish Singh <yosh@gimp.org>
* Made 1.1.9 release
......
......@@ -655,12 +655,17 @@ save_image(char *filename, /* I - File to save to */
bpp = 2;
break;
case INDEXED_IMAGE :
bpp = 1;
info->valid |= PNG_INFO_PLTE;
info->color_type = PNG_COLOR_TYPE_PALETTE;
info->palette = (png_colorp)gimp_image_get_cmap(image_ID, &num_colors);
info->num_palette= num_colors;
bpp = 1;
break;
case INDEXEDA_IMAGE :
g_message (_("Can't save image with alpha\n"));
return 0;
break;
default:
abort ();
};
......
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