[mapserver-commits] r10652 - trunk/mapserver

svn at osgeo.org svn at osgeo.org
Sat Oct 23 17:26:57 EDT 2010


Author: warmerdam
Date: 2010-10-23 14:26:57 -0700 (Sat, 23 Oct 2010)
New Revision: 10652

Modified:
   trunk/mapserver/mapwfs.c
Log:
correct interpretation of startindex - zero means no skipping

Modified: trunk/mapserver/mapwfs.c
===================================================================
--- trunk/mapserver/mapwfs.c	2010-10-23 21:16:43 UTC (rev 10651)
+++ trunk/mapserver/mapwfs.c	2010-10-23 21:26:57 UTC (rev 10652)
@@ -2515,9 +2515,14 @@
     }
     else 
     {
-        int to_allow = maxfeatures, to_skip = startindex-1;
+        int to_allow = maxfeatures, to_skip;
         mapservObj *mapserv = msAllocMapServObj();
 
+        if( startindex < 1 )
+            to_skip = 0;
+        else
+            to_skip = startindex;
+
         /* Setup dummy mapserv object */
         mapserv->sendheaders = MS_TRUE;
         mapserv->map = map;



More information about the mapserver-commits mailing list