Bill Skaggs <weskaggs@primate.ucdavis.edu>

* plug-ins/common/gauss.c: always use RLE if horz or
	vert radius is less than 1.  Fixes bug #315953.
This commit is contained in:
William Skaggs 2005-10-06 19:15:21 +00:00
parent 06638a8912
commit 0e60632d29
2 changed files with 12 additions and 0 deletions

View File

@ -1,3 +1,8 @@
2005-10-06 Bill Skaggs <weskaggs@primate.ucdavis.edu>
* plug-ins/common/gauss.c: always use RLE if horz or
vert radius is less than 1. Fixes bug #315953.
2005-10-06 Sven Neumann <sven@gimp.org>
* plug-ins/jpeg/jpeg-save.c: can't use smoothing with nonstandard

View File

@ -660,6 +660,13 @@ gauss (GimpDrawable *drawable,
guchar *preview_buffer1 = NULL;
guchar *preview_buffer2 = NULL;
/*
* IIR goes wrong if the blur radius is less than 1, so we silently
* switch to RLE in this case. See bug #315953
*/
if (horz <= 1.0 || vert <= 1.0)
method = BLUR_RLE;
if (horz <= 0.0 && vert <= 0.0)
{
if (preview)