Quick bug fix for gauss_iir

This commit is contained in:
Seth Burgess 1998-09-20 18:00:13 +00:00
parent dbb801e2d6
commit c7b9f71d4e
3 changed files with 14 additions and 0 deletions

View File

@ -1,3 +1,7 @@
Sun Sep 20 12:57:00 CST 1998 Seth Burgess <sjburges@gimp.org>
* plug-ins/gauss_iir/gauss_iir.c: Fixed segfault if neither
horizontal nor vertical was selected (as reported by Marc Lehman).
Sat Sep 19 01:19:18 BST 1998 Andy Thomas <alt@picnic.demon.co.uk>
* app/blend.c app/brush_select.c app/brush_select.h app/bucket_fill.c

View File

@ -394,6 +394,11 @@ gauss_iir (GDrawable *drawable,
guchar *guc_tmp1, *guc_tmp2;
gint *gi_tmp1, *gi_tmp2;
/* Take care of the case that neither horizontal nor vertical is selected */
if (!(horz || vert)) {
return;
}
gimp_drawable_mask_bounds (drawable->id, &x1, &y1, &x2, &y2);
width = (x2 - x1);

View File

@ -394,6 +394,11 @@ gauss_iir (GDrawable *drawable,
guchar *guc_tmp1, *guc_tmp2;
gint *gi_tmp1, *gi_tmp2;
/* Take care of the case that neither horizontal nor vertical is selected */
if (!(horz || vert)) {
return;
}
gimp_drawable_mask_bounds (drawable->id, &x1, &y1, &x2, &y2);
width = (x2 - x1);