for an opaque buffer, initialize the brush mask with 255 instead of 0.

2008-05-14  Sven Neumann  <sven@gimp.org>

	* app/core/gimpbrushclipboard.c
	(gimp_brush_clipboard_buffer_changed): for an opaque buffer,
	initialize the brush mask with 255 instead of 0.  Fixes bug 
#532886.



svn path=/trunk/; revision=25661
This commit is contained in:
Sven Neumann 2008-05-14 07:04:41 +00:00 committed by Sven Neumann
parent e312aee2d8
commit 241bd2980f
2 changed files with 13 additions and 1 deletions

View File

@ -1,3 +1,10 @@
2008-05-14 Sven Neumann <sven@gimp.org>
* app/core/gimpbrushclipboard.c
(gimp_brush_clipboard_buffer_changed): fixed handling of opaque
buffers and initialize the brush mask with 255 instead of 0.
Fixes bug #532886.
2008-05-14 Sven Neumann <sven@gimp.org>
* plug-ins/gradient-flare/gradient-flare.c

View File

@ -231,7 +231,12 @@ gimp_brush_clipboard_buffer_changed (Gimp *gimp,
}
else
{
temp_buf_data_clear (brush->mask);
PixelRegion maskPR;
guchar opaque = OPAQUE_OPACITY;
pixel_region_init_temp_buf (&maskPR, brush->mask,
0, 0, width, height);
color_region (&maskPR, &opaque);
}
/* copy the color channels into the brush's pixmap */