Преглед изворни кода

v.distance: bug fix for all features option

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@50034 15284696-431f-4ddb-bdfa-cd5b030d7da7
Markus Metz пре 13 година
родитељ
комит
190aa1b6c6
1 измењених фајлова са 2 додато и 2 уклоњено
  1. 2 2
      vector/v.distance/main.c

+ 2 - 2
vector/v.distance/main.c

@@ -679,7 +679,7 @@ int main(int argc, char *argv[])
 
 		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 @@ int main(int argc, char *argv[])
 		    }
 		}
 
-		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: