gegl r1822 - in trunk: . operations/core



Author: ok
Date: Mon Jan  7 23:33:29 2008
New Revision: 1822
URL: http://svn.gnome.org/viewvc/gegl?rev=1822&view=rev

Log:
* operations/core/shift.c: (detect): fixed regression in hit
detection.


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

Modified: trunk/operations/core/shift.c
==============================================================================
--- trunk/operations/core/shift.c	(original)
+++ trunk/operations/core/shift.c	Mon Jan  7 23:33:29 2008
@@ -192,11 +192,14 @@
         gint           y)
 {
   GeglNode *input_node;
+  GeglOperationShift *self = GEGL_OPERATION_SHIFT (operation);
 
   input_node = gegl_operation_get_source_node (operation, "input");
 
   if (input_node)
-    return gegl_operation_detect (input_node->operation, x, y);
+    return gegl_operation_detect (input_node->operation,
+                                  x - floor (self->x),
+                                  y - floor (self->y));
   return operation->node;
 }
 



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