[mapserver-commits] r12177 - trunk/mapserver/mapcache/src
svn at osgeo.org
svn at osgeo.org
Fri Aug 26 07:04:36 EDT 2011
Author: tbonfort
Date: 2011-08-26 04:04:36 -0700 (Fri, 26 Aug 2011)
New Revision: 12177
Modified:
trunk/mapserver/mapcache/src/tileset.c
Log:
rework autoconf script
thomas.bonfort | 2010-12-14 16:30:47 +0100 (Tue, 14 Dec 2010)
Modified: trunk/mapserver/mapcache/src/tileset.c
===================================================================
--- trunk/mapserver/mapcache/src/tileset.c 2011-08-26 11:04:32 UTC (rev 12176)
+++ trunk/mapserver/mapcache/src/tileset.c 2011-08-26 11:04:36 UTC (rev 12177)
@@ -113,7 +113,11 @@
mt->tile.sy = mt->tile.tileset->metasize_y * tile->sy + 2 * mt->tile.tileset->metabuffer;
mt->tile.z = tile->z;
mt->tile.x = tile->x / mt->tile.tileset->metasize_x;
+ if(tile->x < 0)
+ mt->tile.x --;
mt->tile.y = tile->y / mt->tile.tileset->metasize_y;
+ if(tile->y < 0)
+ mt->tile.y --;
//tilesize = self.actualSize()
gbuffer = res * mt->tile.tileset->metabuffer;
More information about the mapserver-commits
mailing list