[mapserver-commits] r13247 - trunk/mapserver

svn at osgeo.org svn at osgeo.org
Wed Mar 14 07:32:42 EDT 2012


Author: tbonfort
Date: 2012-03-14 04:32:42 -0700 (Wed, 14 Mar 2012)
New Revision: 13247

Modified:
   trunk/mapserver/mapprimitive.c
Log:
fix bug on GD coordinate transformer


Modified: trunk/mapserver/mapprimitive.c
===================================================================
--- trunk/mapserver/mapprimitive.c	2012-03-14 11:16:38 UTC (rev 13246)
+++ trunk/mapserver/mapprimitive.c	2012-03-14 11:32:42 UTC (rev 13247)
@@ -1055,7 +1055,7 @@
       }
    } else { /* points or untyped shapes */
       for(i=0; i<shape->numlines; i++) { /* for each part */
-         for(j=1; j < shape->line[i].numpoints; j++ ) {
+         for(j=0; j < shape->line[i].numpoints; j++ ) {
             shape->line[i].point[j].x = MS_MAP2IMAGE_X_IC(shape->line[i].point[j].x, extent.minx, inv_cs);
             shape->line[i].point[j].y = MS_MAP2IMAGE_Y_IC(shape->line[i].point[j].y, extent.maxy, inv_cs);
          }



More information about the mapserver-commits mailing list