[mapserver-commits] r13158 - trunk/mapserver

svn at osgeo.org svn at osgeo.org
Tue Feb 21 12:22:56 EST 2012


Author: tbonfort
Date: 2012-02-21 09:22:56 -0800 (Tue, 21 Feb 2012)
New Revision: 13158

Modified:
   trunk/mapserver/mapprimitive.c
Log:
fix wrong bounds calculation in msCopyShape()



Modified: trunk/mapserver/mapprimitive.c
===================================================================
--- trunk/mapserver/mapprimitive.c	2012-02-17 12:06:37 UTC (rev 13157)
+++ trunk/mapserver/mapprimitive.c	2012-02-21 17:22:56 UTC (rev 13158)
@@ -124,10 +124,10 @@
 
   to->type = from->type;
 
-  to->bounds.minx = from->bounds.minx;
-  to->bounds.miny = from->bounds.miny;
-  to->bounds.maxx = from->bounds.maxx;
-  to->bounds.maxy = from->bounds.maxy;
+  to->bounds.minx = MS_MIN(to->bounds.minx,from->bounds.minx);
+  to->bounds.miny = MS_MIN(to->bounds.miny,from->bounds.miny);
+  to->bounds.maxx = MS_MAX(to->bounds.maxx,from->bounds.maxx);
+  to->bounds.maxy = MS_MAX(to->bounds.maxy,from->bounds.maxy);
 
   if(from->text) to->text = msStrdup(from->text);
 



More information about the mapserver-commits mailing list