gegl r3028 - in trunk: . gegl/buffer



Author: martinn
Date: Sat Apr 11 12:57:46 2009
New Revision: 3028
URL: http://svn.gnome.org/viewvc/gegl?rev=3028&view=rev

Log:
gegl: Handle infinite planes in gegl_rectangle_expand()

Modified:
   trunk/ChangeLog
   trunk/gegl/buffer/gegl-cache.c

Modified: trunk/gegl/buffer/gegl-cache.c
==============================================================================
--- trunk/gegl/buffer/gegl-cache.c	(original)
+++ trunk/gegl/buffer/gegl-cache.c	Sat Apr 11 12:57:46 2009
@@ -96,6 +96,9 @@
   gint xdiff;
   gint ydiff;
 
+  if (gegl_rectangle_is_infinite_plane (rectangle))
+    return *rectangle;
+
   xdiff = expanded.x % align;
   if (xdiff < 0)
     xdiff = align + xdiff;



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