[GRASS-SVN] r43082 - grass/branches/develbranch_6/vector/v.distance

svn_grass at osgeo.org svn_grass at osgeo.org
Fri Aug 13 03:02:06 EDT 2010


Author: mlennert
Date: 2010-08-13 07:02:06 +0000 (Fri, 13 Aug 2010)
New Revision: 43082

Modified:
   grass/branches/develbranch_6/vector/v.distance/main.c
Log:
added missing test for min distance


Modified: grass/branches/develbranch_6/vector/v.distance/main.c
===================================================================
--- grass/branches/develbranch_6/vector/v.distance/main.c	2010-08-13 06:13:43 UTC (rev 43081)
+++ grass/branches/develbranch_6/vector/v.distance/main.c	2010-08-13 07:02:06 UTC (rev 43082)
@@ -703,7 +703,7 @@
 				       &tmp_ty, NULL, &tmp_dist, NULL, NULL);
 
 		}
-		if (tmp_dist > max)
+		if (tmp_dist > max || tmp_dist < min)
 		    continue;	/* not in threshold */
 		Vect_get_area_cats(&To, area, TCats);
 		tmp_tcat = -1;



More information about the grass-commit mailing list