Browse Source

rtree_search bugfix was bogus, sorry

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@38670 15284696-431f-4ddb-bdfa-cd5b030d7da7
Markus Metz 15 years ago
parent
commit
dcdbf92c18
1 changed files with 1 additions and 1 deletions
  1. 1 1
      lib/vector/diglib/spindex_rw.c

+ 1 - 1
lib/vector/diglib/spindex_rw.c

@@ -1008,7 +1008,7 @@ int rtree_search(struct RTree *t, struct Rect *r, SearchHitCallback shcb,
 		    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;
 			}