gegl r2386 - in trunk: . operations/core



Author: ok
Date: Fri Jun  6 01:07:58 2008
New Revision: 2386
URL: http://svn.gnome.org/viewvc/gegl?rev=2386&view=rev

Log:
* operations/core/crop.c: (get_required_for_output): report the
intersection of crop with request.


Modified:
   trunk/ChangeLog
   trunk/operations/core/crop.c

Modified: trunk/operations/core/crop.c
==============================================================================
--- trunk/operations/core/crop.c	(original)
+++ trunk/operations/core/crop.c	Fri Jun  6 01:07:58 2008
@@ -87,7 +87,10 @@
                          const gchar         *input_pad,
                          const GeglRectangle *roi)
 {
-  return *roi;
+  GeglChantO   *o = GEGL_CHANT_PROPERTIES (operation);
+  GeglRectangle result = {o->x, o->y, o->width, o->height};
+  gegl_rectangle_intersect (&result, &result, roi);
+  return result;
 }
 
 static gboolean



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