[gegl] operations: Don't try to make infinite rects bigger in area filters



commit a6412d941ff9ca98eca57ebced0fa1255fedd288
Author: Michael Henning <drawoc darkrefraction com>
Date:   Sun Mar 31 19:30:27 2013 -0400

    operations: Don't try to make infinite rects bigger in area filters

 gegl/operation/gegl-operation-area-filter.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/gegl/operation/gegl-operation-area-filter.c b/gegl/operation/gegl-operation-area-filter.c
index 942420f..7ded722 100644
--- a/gegl/operation/gegl-operation-area-filter.c
+++ b/gegl/operation/gegl-operation-area-filter.c
@@ -83,6 +83,9 @@ get_bounding_box (GeglOperation *operation)
   if (!in_rect)
     return result;
 
+  if (gegl_rectangle_is_infinite_plane (in_rect))
+    return *in_rect;
+
   result = *in_rect;
   if (result.width != 0 &&
       result.height != 0)


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