浏览代码

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: