mirror of https://github.com/GNOME/gimp.git
Quick bug fix for gauss_iir
This commit is contained in:
parent
dbb801e2d6
commit
c7b9f71d4e
|
@ -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
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue