This change was not committed because of a slip in the CVS command line:

2003-05-14  Pedro Gimeno  <pggimeno@wanadoo.es>

	This change was not committed because of a slip in the CVS
	command line:

	* plug-ins/common/blur.c (blur): Ported a change from STABLE
	branch that might fix bug #84731.
This commit is contained in:
Pedro Gimeno 2003-05-17 00:44:56 +00:00 committed by Pedro Gimeno Fortea
parent b0542b90e8
commit e34d3621d7
1 changed files with 45 additions and 41 deletions

View File

@ -314,7 +314,8 @@ run (gchar *name,
* JUST DO IT!
*/
gimp_progress_init (_("Blurring..."));
gimp_tile_cache_ntiles (2 * (drawable->width / gimp_tile_width() + 1));
gimp_tile_cache_ntiles (2 * (drawable->width / gimp_tile_width ()
+ 1));
/*
* Initialize the rand() function seed
*/
@ -407,6 +408,7 @@ blur (GimpDrawable *drawable)
gint row, col;
gint x1, y1, x2, y2;
gint cnt, ind;
gint repeat_count;
gboolean has_alpha;
/*
@ -447,7 +449,9 @@ blur (GimpDrawable *drawable)
cr = cur_row + bytes;
nr = next_row + bytes;
for (cnt = 1; cnt <= pivals.blur_rcount; cnt++)
repeat_count = (gint) pivals.blur_rcount;
for (cnt = 1; cnt <= repeat_count; cnt++)
{
/*
* prepare the first row and previous row
@ -536,7 +540,7 @@ blur (GimpDrawable *drawable)
/*
* if we have more cycles to perform, swap the src and dest Pixel Regions
*/
if (cnt < pivals.blur_rcount)
if (cnt < repeat_count)
{
if (tp != NULL)
{