fixed call to gimp_drawable_mask_intersect() which was causing a crash as
2008-02-22 Sven Neumann <sven@gimp.org> * plug-ins/common/wind.c (render_wind): fixed call to gimp_drawable_mask_intersect() which was causing a crash as reported in bug #516369. svn path=/trunk/; revision=24937
This commit is contained in:
parent
f7664716a1
commit
5c5d221cf5
2 changed files with 13 additions and 4 deletions
|
|
@ -1,3 +1,9 @@
|
|||
2008-02-22 Sven Neumann <sven@gimp.org>
|
||||
|
||||
* plug-ins/common/wind.c (render_wind): fixed call to
|
||||
gimp_drawable_mask_intersect() which was causing a crash as
|
||||
reported in bug #516369.
|
||||
|
||||
2008-02-21 Michael Natterer <mitch@gimp.org>
|
||||
|
||||
* app/actions/plug-in-actions.c (plug_in_actions_history_changed):
|
||||
|
|
|
|||
|
|
@ -437,18 +437,21 @@ render_wind (GimpDrawable *drawable,
|
|||
}
|
||||
else
|
||||
{
|
||||
if (gimp_drawable_mask_intersect (drawable->drawable_id, &x1, &y1, &x2, &y2))
|
||||
if (gimp_drawable_mask_intersect (drawable->drawable_id,
|
||||
&x1, &y1, &width, &height))
|
||||
{
|
||||
gimp_progress_init (_("Rendering wind"));
|
||||
|
||||
width = x2 - x1;
|
||||
height = y2 - y1;
|
||||
x2 = x1 + width;
|
||||
y2 = y1 + height;
|
||||
|
||||
gimp_pixel_rgn_init (&dest_region, drawable,
|
||||
x1, y1, width, height, TRUE, TRUE);
|
||||
}
|
||||
else
|
||||
return;
|
||||
{
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
gimp_pixel_rgn_init (&src_region, drawable,
|
||||
|
|
|
|||
Loading…
Reference in a new issue