[GRASS-SVN] r38670 - grass/trunk/lib/vector/diglib

svn_grass at osgeo.org svn_grass at osgeo.org
Mon Aug 10 02:02:35 EDT 2009


Author: mmetz
Date: 2009-08-10 02:02:35 -0400 (Mon, 10 Aug 2009)
New Revision: 38670

Modified:
   grass/trunk/lib/vector/diglib/spindex_rw.c
Log:
rtree_search bugfix was bogus, sorry

Modified: grass/trunk/lib/vector/diglib/spindex_rw.c
===================================================================
--- grass/trunk/lib/vector/diglib/spindex_rw.c	2009-08-10 05:59:59 UTC (rev 38669)
+++ grass/trunk/lib/vector/diglib/spindex_rw.c	2009-08-10 06:02:35 UTC (rev 38670)
@@ -1008,7 +1008,7 @@
 		    RTreeOverlap(r, &(s[top].sn.branch[i].rect), t)) {
 		    hitCount++;
 		    if (shcb) {	/* call the user-provided callback */
-			if (!shcb(s[top].sn.branch[i].child.id, cbarg)) {
+			if (!shcb((int)s[top].sn.branch[i].child, cbarg)) {
 			    /* callback wants to terminate search early */
 			    return hitCount;
 			}



More information about the grass-commit mailing list