From a656b146e55b8641cf0f0e512e022a3892cae9df Mon Sep 17 00:00:00 2001 From: EDT 1998 Matthew Wilson Date: Sat, 30 May 1998 03:36:08 +0000 Subject: [PATCH] fix by sjburges to fix horiz only blur. Funky bug! --Matt Fri May 29 23:34:07 EDT 1998 Matthew Wilson * plug-ins/gaus_iir/gauss_iir.c: fix by sjburges to fix horiz only blur. Funky bug! --Matt --- ChangeLog | 13 +++++++++---- plug-ins/common/gauss_iir.c | 4 +++- plug-ins/gauss_iir/gauss_iir.c | 4 +++- 3 files changed, 15 insertions(+), 6 deletions(-) diff --git a/ChangeLog b/ChangeLog index 72a4779ef1..b7e72f339f 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +Fri May 29 23:34:07 EDT 1998 Matthew Wilson + + * plug-ins/gaus_iir/gauss_iir.c: fix by sjburges to fix horiz + only blur. Funky bug! + Fri May 29 21:36:36 MEST 1998 Sven Neumann * app/xcf.c: changed fopen parameters for better portability @@ -24,10 +29,10 @@ Thu May 28 01:16:26 PDT 1998 Manish Singh Made script-fu a little friendlier. * updated the regex code from grep 2.2 - + Wed May 27 11:22:46 MEST 1998 Sven Neumann - * plug-ins/ifscompose/ifscompose.h: removed definition of TRUE + * plug-ins/ifscompose/ifscompose.h: removed definition of TRUE and FALSE Tue May 26 17:20:26 EDT 1998 Adrian Likins @@ -123,7 +128,7 @@ Sun May 17 14:02:44 PDT 1998 Manish Singh Sun May 17 00:15:40 PDT 1998 Manish Singh * Made 0.99.31 release - + * updated print plugin Fri May 15 23:35:43 PDT 1998 Manish Singh @@ -137,7 +142,7 @@ Fri May 15 03:54:48 EDT 1998 Matthew Wilson Fri May 15 03:03:00 EDT 1998 Matthew Wilson * app/iscissors.c: fixed bezierify on offset layers - + Thu May 14 21:18:27 EDT 1998 Matthew Wilson * app/iscissors.c: a very sad attempt to fix some iscissors diff --git a/plug-ins/common/gauss_iir.c b/plug-ins/common/gauss_iir.c index 5b773b5268..e43a3929db 100644 --- a/plug-ins/common/gauss_iir.c +++ b/plug-ins/common/gauss_iir.c @@ -422,6 +422,7 @@ gauss_iir (GDrawable *drawable, /* First the vertical pass */ for (col = 0; col < width; col++) { + memset(val_p, 0, height * bytes * sizeof (gdouble)); memset(val_m, 0, height * bytes * sizeof (gdouble)); @@ -497,7 +498,8 @@ gauss_iir (GDrawable *drawable, if (horz) { /* prepare for the horizontal pass */ - gimp_pixel_rgn_init (&src_rgn, drawable, 0, 0, drawable->width, drawable->height, FALSE, TRUE); + if (vert) + gimp_pixel_rgn_init (&src_rgn, drawable, 0, 0, drawable->width, drawable->height, FALSE, TRUE); /* Now the horizontal pass */ for (row = 0; row < height; row++) { diff --git a/plug-ins/gauss_iir/gauss_iir.c b/plug-ins/gauss_iir/gauss_iir.c index 5b773b5268..e43a3929db 100644 --- a/plug-ins/gauss_iir/gauss_iir.c +++ b/plug-ins/gauss_iir/gauss_iir.c @@ -422,6 +422,7 @@ gauss_iir (GDrawable *drawable, /* First the vertical pass */ for (col = 0; col < width; col++) { + memset(val_p, 0, height * bytes * sizeof (gdouble)); memset(val_m, 0, height * bytes * sizeof (gdouble)); @@ -497,7 +498,8 @@ gauss_iir (GDrawable *drawable, if (horz) { /* prepare for the horizontal pass */ - gimp_pixel_rgn_init (&src_rgn, drawable, 0, 0, drawable->width, drawable->height, FALSE, TRUE); + if (vert) + gimp_pixel_rgn_init (&src_rgn, drawable, 0, 0, drawable->width, drawable->height, FALSE, TRUE); /* Now the horizontal pass */ for (row = 0; row < height; row++) {