Commit 805eaf91 authored by Sven Neumann's avatar Sven Neumann Committed by Sven Neumann
Browse files

applied patch from David Costanzo that initializes unspecified pixels in

2005-03-25  Sven Neumann  <sven@gimp.org>

	* plug-ins/bmp/bmpread.c: applied patch from David Costanzo that
	initializes unspecified pixels in RLE bitmaps. Fixes bug #171562.
parent f6cb341c
2005-03-25 Sven Neumann <sven@gimp.org>
* plug-ins/bmp/bmpread.c: applied patch from David Costanzo that
initializes unspecified pixels in RLE bitmaps. Fixes bug #171562.
2005-03-25 Sven Neumann <sven@gimp.org>
* app/dialogs/file-save-dialog.c
......
......@@ -494,7 +494,10 @@ ReadImage (FILE *fd,
gimp_image_add_layer (image, layer, 0);
drawable = gimp_drawable_get (layer);
dest = g_malloc (drawable->width * drawable->height * channels);
/* use g_malloc0 to initialize the dest buffer so that unspecified
pixels in RLE bitmaps show up as the zeroth element in the palette.
*/
dest = g_malloc0 (drawable->width * drawable->height * channels);
buffer = g_malloc (rowbytes);
rowstride = drawable->width * channels;
......
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