[GRASS-SVN] r55792 - grass/trunk/lib/vector/Vlib
    svn_grass at osgeo.org 
    svn_grass at osgeo.org
       
    Sun Apr 14 04:24:54 PDT 2013
    
    
  
Author: mmetz
Date: 2013-04-14 04:24:54 -0700 (Sun, 14 Apr 2013)
New Revision: 55792
Modified:
   grass/trunk/lib/vector/Vlib/break_polygons.c
Log:
Vlib: Vect_break_polygons() stop rtree search on first hit
Modified: grass/trunk/lib/vector/Vlib/break_polygons.c
===================================================================
--- grass/trunk/lib/vector/Vlib/break_polygons.c	2013-04-14 11:22:54 UTC (rev 55791)
+++ grass/trunk/lib/vector/Vlib/break_polygons.c	2013-04-14 11:24:54 UTC (rev 55792)
@@ -71,9 +71,11 @@
 static int fpoint;
 
 /* Function called from RTreeSearch for point found */
-static void srch(int id, const struct RTree_Rect *rect, int *arg)
+static int srch(int id, const struct RTree_Rect *rect, int *arg)
 {
     fpoint = id;
+    
+    return 0;	/* stop searching */
 }
 
 /* function used by binary tree to compare items */
    
    
More information about the grass-commit
mailing list