[GRASS-SVN] r50034 - grass/trunk/vector/v.distance
svn_grass at osgeo.org
svn_grass at osgeo.org
Mon Jan 2 12:18:32 EST 2012
Author: mmetz
Date: 2012-01-02 09:18:32 -0800 (Mon, 02 Jan 2012)
New Revision: 50034
Modified:
grass/trunk/vector/v.distance/main.c
Log:
v.distance: bug fix for all features option
Modified: grass/trunk/vector/v.distance/main.c
===================================================================
--- grass/trunk/vector/v.distance/main.c 2012-01-02 14:33:06 UTC (rev 50033)
+++ grass/trunk/vector/v.distance/main.c 2012-01-02 17:18:32 UTC (rev 50034)
@@ -679,7 +679,7 @@
G_debug(4, " dist = %f", dist);
- if (curr_step < n_max_steps) {
+ if (!all && curr_step < n_max_steps) {
/* enlarging the search box is possible */
if (tline > 0 && dist > box_edge) {
/* line found but distance > search edge:
@@ -871,7 +871,7 @@
}
}
- if (curr_step < n_max_steps) {
+ if (!all && curr_step < n_max_steps) {
/* enlarging the search box is possible */
if (tarea > 0 && dist > box_edge) {
/* area found but distance > search edge:
More information about the grass-commit
mailing list