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:

committed by
Austin Donnelly

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>
|
Thu Sep 9 21:29:16 PDT 1999 Manish Singh <yosh@gimp.org>
|
||||||
|
|
||||||
* Made 1.1.9 release
|
* Made 1.1.9 release
|
||||||
|
@ -655,12 +655,17 @@ save_image(char *filename, /* I - File to save to */
|
|||||||
bpp = 2;
|
bpp = 2;
|
||||||
break;
|
break;
|
||||||
case INDEXED_IMAGE :
|
case INDEXED_IMAGE :
|
||||||
|
bpp = 1;
|
||||||
info->valid |= PNG_INFO_PLTE;
|
info->valid |= PNG_INFO_PLTE;
|
||||||
info->color_type = PNG_COLOR_TYPE_PALETTE;
|
info->color_type = PNG_COLOR_TYPE_PALETTE;
|
||||||
info->palette = (png_colorp)gimp_image_get_cmap(image_ID, &num_colors);
|
info->palette = (png_colorp)gimp_image_get_cmap(image_ID, &num_colors);
|
||||||
info->num_palette= num_colors;
|
info->num_palette= num_colors;
|
||||||
bpp = 1;
|
|
||||||
break;
|
break;
|
||||||
|
case INDEXEDA_IMAGE :
|
||||||
|
g_message (_("Can't save image with alpha\n"));
|
||||||
|
return 0;
|
||||||
|
break;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
abort ();
|
abort ();
|
||||||
};
|
};
|
||||||
|
Reference in New Issue
Block a user