[mapserver-commits] r10937 - trunk/mapserver

svn at osgeo.org svn at osgeo.org
Fri Feb 4 16:45:29 EST 2011


Author: tamas
Date: 2011-02-04 13:45:29 -0800 (Fri, 04 Feb 2011)
New Revision: 10937

Modified:
   trunk/mapserver/mapshape.c
Log:
Fix for the build problem with MSVC

Modified: trunk/mapserver/mapshape.c
===================================================================
--- trunk/mapserver/mapshape.c	2011-02-04 21:24:35 UTC (rev 10936)
+++ trunk/mapserver/mapshape.c	2011-02-04 21:45:29 UTC (rev 10937)
@@ -2608,9 +2608,11 @@
 int msSHPLayerGetShape(layerObj *layer, shapeObj *shape, resultObj *record)
 {
   shapefileObj *shpfile;
+  long shapeindex;
+
   shpfile = layer->layerinfo;
 
-  long shapeindex = record->shapeindex;
+  shapeindex = record->shapeindex;
 
   if(!shpfile) {
     msSetError(MS_SHPERR, "Shapefile layer has not been opened.", "msSHPLayerGetShape()");



More information about the mapserver-commits mailing list