diff --git a/gdk-pixbuf/ChangeLog b/gdk-pixbuf/ChangeLog index 75853d2427..1ffdffc86e 100644 --- a/gdk-pixbuf/ChangeLog +++ b/gdk-pixbuf/ChangeLog @@ -1,3 +1,10 @@ +Tue Dec 4 11:45:45 2001 Owen Taylor + + * io-xpm.c (pixbuf_create_from_xpm): Fill in color + fields to black for transparent colors since we'll + later initialize pixels from them. (Fixes purify + errors, #66093, HideToshi Tajima) + 2001-11-30 Tor Lillqvist * gdk_pixbuf.def: Add gdk_pixbuf_get_option. diff --git a/gdk-pixbuf/io-xpm.c b/gdk-pixbuf/io-xpm.c index b18a82e640..3efb4324a0 100644 --- a/gdk-pixbuf/io-xpm.c +++ b/gdk-pixbuf/io-xpm.c @@ -1300,6 +1300,9 @@ pixbuf_create_from_xpm (const gchar * (*get_buf) (enum buf_op op, gpointer handl if ((color_name == NULL) || (g_strcasecmp (color_name, "None") == 0) || (parse_color (color_name, color) == FALSE)) { color->transparent = TRUE; + color->red = 0; + color->green = 0; + color->blue = 0; is_trans = TRUE; }