[gimp/soc-2011-warp] imagemap: do nothing if the area to render is outside the drawable, to avoid warning in gegl



commit bac219165e1a8c43e543c3ce195eab7d794389ae
Author: Michael Murà <batolettre gmail com>
Date:   Wed Aug 3 03:17:07 2011 +0200

    imagemap: do nothing if the area to render is outside the drawable, to avoid warning in gegl

 app/core/gimpimagemap.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/app/core/gimpimagemap.c b/app/core/gimpimagemap.c
index b4006a8..b6c2b20 100644
--- a/app/core/gimpimagemap.c
+++ b/app/core/gimpimagemap.c
@@ -629,6 +629,10 @@ gimp_image_map_apply_real (GimpImageMap        *image_map,
   gboolean reallocate;
   g_return_if_fail (GIMP_IS_IMAGE_MAP (image_map));
 
+  /* if nothing to render, just return */
+  if (!gegl_rectangle_intersect (NULL, full_region, to_render))
+    return;
+
   /*  If we're still working, queue the region to render and return.  */
   if (image_map->idle_id)
     {



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