mirror of https://github.com/GNOME/gimp.git
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.
This commit is contained in:
parent
09ffd828c9
commit
1fdfba91b8
|
@ -1,3 +1,9 @@
|
|||
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 ();
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue