Commit 4624bc84 authored by Sven Neumann's avatar Sven Neumann Committed by Sven Neumann

avoid crashing when the widget allocation is small (bug #511926).

2008-01-25  Sven Neumann  <sven@gimp.org>

	* app/widgets/gimpcolormapeditor.c (gimp_colormap_editor_draw):
	avoid crashing when the widget allocation is small (bug 
#511926).


svn path=/trunk/; revision=24704
parent 60089b64
2008-01-25 Sven Neumann <sven@gimp.org>
* app/widgets/gimpcolormapeditor.c (gimp_colormap_editor_draw):
avoid crashing when the widget allocation is small (bug #511926).
2008-01-24 Sven Neumann <sven@gimp.org>
* app/about.h (GIMP_COPYRIGHT): updated copyright.
......
......@@ -504,7 +504,8 @@ gimp_colormap_editor_draw (GimpColormapEditor *editor)
row[(j * cellsize + k) * 3 + b] = image->colormap[col * 3 + b];
}
memset (row + j * cellsize * 3, 255, 3 * (width - j * cellsize));
if (j * cellsize > width)
memset (row + j * cellsize * 3, 255, 3 * (width - j * cellsize));
for (k = 0; k < cellsize; k++)
{
......
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