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



commit f41075ea248fcacca69366f8557d431f6579ee3d
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 3c9092e..b3ac98a 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]