initialize rowstride to zero; it's meaningless as long as data is NULL.

2007-03-29  Sven Neumann  <sven@gimp.org>

	* libgimp/gimppixelrgn.c (gimp_pixel_rgn_init): initialize
	rowstride to zero; it's meaningless as long as data is NULL.


svn path=/trunk/; revision=22191
This commit is contained in:
Sven Neumann
2007-03-29 12:02:07 +00:00
committed by Sven Neumann
parent e7777475f2
commit 49beee20d2
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2007-03-29 Sven Neumann <sven@gimp.org>
* libgimp/gimppixelrgn.c (gimp_pixel_rgn_init): initialize
rowstride to zero; it's meaningless as long as data is NULL.
2007-03-28 Sven Neumann <sven@gimp.org>
* app/pdb/layer_cmds.c

View File

@ -140,7 +140,7 @@ gimp_pixel_rgn_init (GimpPixelRgn *pr,
pr->data = NULL;
pr->drawable = drawable;
pr->bpp = drawable->bpp;
pr->rowstride = pr->bpp * TILE_WIDTH;
pr->rowstride = 0;
pr->x = x;
pr->y = y;
pr->w = width;