gegl r2727 - in trunk: . gegl/buffer
- From: ok svn gnome org
- To: svn-commits-list gnome org
- Subject: gegl r2727 - in trunk: . gegl/buffer
- Date: Tue, 11 Nov 2008 00:03:25 +0000 (UTC)
Author: ok
Date: Tue Nov 11 00:03:25 2008
New Revision: 2727
URL: http://svn.gnome.org/viewvc/gegl?rev=2727&view=rev
Log:
* gegl/buffer/gegl-cache.c: (gegl_rectangle_expand): fix expansion for
negative x,y coordinates.
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 Tue Nov 11 00:03:25 2008
@@ -96,12 +96,16 @@
gint ydiff;
xdiff = expanded.x % align;
+ if (xdiff < 0)
+ xdiff = align + xdiff;
expanded.width += xdiff;
expanded.x -= xdiff;
xdiff = align -(expanded.width % align);
expanded.width += xdiff;
ydiff = expanded.y % align;
+ if (ydiff < 0)
+ ydiff = align + ydiff;
expanded.height += ydiff;
expanded.y -= ydiff;
ydiff = align -(expanded.height % align);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]