From 1fdfba91b8b2b19a8c4071bab4da37e1e90bae8e Mon Sep 17 00:00:00 2001 From: EDT 1999 Austin Donnelly Date: Fri, 10 Sep 1999 22:36:56 +0000 Subject: [PATCH] cheesy fix for INDEXEDA core dump: popup a window saying we can't handle Fri Sep 10 18:36:34 EDT 1999 Austin Donnelly * 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. --- ChangeLog | 6 ++++++ plug-ins/common/png.c | 7 ++++++- 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 4fb976ca37..f3981cc4ee 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +Fri Sep 10 18:36:34 EDT 1999 Austin Donnelly + + * 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 * Made 1.1.9 release diff --git a/plug-ins/common/png.c b/plug-ins/common/png.c index 0c6c6a65c9..a1fded4a5e 100644 --- a/plug-ins/common/png.c +++ b/plug-ins/common/png.c @@ -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 (); };