Commit 32ec1417 authored by Sven Neumann's avatar Sven Neumann Committed by Sven Neumann
Browse files

fixed preview for zero blur radii (bug #173039).

2005-04-08  Sven Neumann  <sven@gimp.org>

	* plug-ins/common/gauss.c: fixed preview for zero blur radii
	(bug #173039).
parent eb236f7c
2005-04-08 Sven Neumann <neumann@jpk.com>
* plug-ins/common/gauss.c: fixed preview for zero blur radii
(bug #173039).
2005-04-08 Sven Neumann <sven@gimp.org>
* app/base/base.c: include libgimpbase/gimpwin32-io.h.
......
......@@ -670,7 +670,7 @@ gauss (GimpDrawable *drawable,
return;
bytes = drawable->bpp;
has_alpha = gimp_drawable_has_alpha(drawable->drawable_id);
has_alpha = gimp_drawable_has_alpha (drawable->drawable_id);
switch (method)
{
......@@ -870,6 +870,11 @@ gauss (GimpDrawable *drawable,
drawable, 0, 0, drawable->width, drawable->height,
FALSE, TRUE);
}
else if (preview)
{
gimp_pixel_rgn_get_rect (&src_rgn,
preview_buffer1, x1, y1, width, height);
}
/* Now the horizontal pass */
if (horz > 0.0)
......@@ -1040,6 +1045,10 @@ gauss (GimpDrawable *drawable,
}
}
}
else if (preview)
{
memcpy (preview_buffer2, preview_buffer1, width * height * bytes);
}
if (preview)
{
......
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