gimp r24937 - in trunk: . plug-ins/common



Author: neo
Date: Fri Feb 22 07:38:38 2008
New Revision: 24937
URL: http://svn.gnome.org/viewvc/gimp?rev=24937&view=rev

Log:
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.



Modified:
   trunk/ChangeLog
   trunk/plug-ins/common/wind.c

Modified: trunk/plug-ins/common/wind.c
==============================================================================
--- trunk/plug-ins/common/wind.c	(original)
+++ trunk/plug-ins/common/wind.c	Fri Feb 22 07:38:38 2008
@@ -437,18 +437,21 @@
     }
   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,



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]