Commit 15fa89ba authored by Sven Neumann's avatar Sven Neumann Committed by Sven Neumann

fixed loop boundaries, spotted by Wolfgang Hofer (bug #121521).

2003-09-05  Sven Neumann  <sven@gimp.org>

	* app/base/temp-buf.c (temp_buf_new_check): fixed loop boundaries,
	spotted by Wolfgang Hofer (bug #121521).
parent c3bdbdad
2003-09-05 Sven Neumann <sven@gimp.org>
* app/base/temp-buf.c (temp_buf_new_check): fixed loop boundaries,
spotted by Wolfgang Hofer (bug #121521).
2003-09-05 Sven Neumann <sven@gimp.org>
* app/base/gimplut.[ch] (gimp_lut_free): free the memory allocated
......@@ -303,12 +303,12 @@ temp_buf_new_check (gint width,
newbuf = temp_buf_new (width, height, 3, 0, 0, NULL);
data = temp_buf_data (newbuf);
for (y = 0; y <= height; y++)
for (y = 0; y < height; y++)
{
guchar dark = y >> check_shift;
guchar color = (dark & 0x1) ? bg_color : fg_color;
for (x = 0; x <= width; x++)
for (x = 0; x < width; x++)
{
*data++ = color;
*data++ = color;
......
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