[GRASS-SVN] r32892 - grass/branches/develbranch_6/lib/vector/Vlib
svn_grass at osgeo.org
svn_grass at osgeo.org
Tue Aug 19 10:12:53 EDT 2008
Author: martinl
Date: 2008-08-19 10:12:53 -0400 (Tue, 19 Aug 2008)
New Revision: 32892
Modified:
grass/branches/develbranch_6/lib/vector/Vlib/find.c
Log:
Vlib: bugfix in Vect_find_line_list() -- don't check cur_dist
Modified: grass/branches/develbranch_6/lib/vector/Vlib/find.c
===================================================================
--- grass/branches/develbranch_6/lib/vector/Vlib/find.c 2008-08-19 14:07:54 UTC (rev 32891)
+++ grass/branches/develbranch_6/lib/vector/Vlib/find.c 2008-08-19 14:12:53 UTC (rev 32892)
@@ -209,11 +209,12 @@
Vect_line_distance(Points, ux, uy, uz, with_z, NULL, NULL, NULL,
&new_dist, NULL, NULL);
G_debug(3, " line = %d distance = %f", line, new_dist);
+
+ if (found && new_dist <= maxdist) {
+ Vect_list_append(found, line);
+ }
+
if ((++gotone == 1) || (new_dist <= cur_dist)) {
- if (found) {
- Vect_list_append(found, line);
- }
-
if (new_dist == cur_dist) {
/* TODO */
/* choice = dig_center_check (map->Line, choice, a, ux, uy); */
More information about the grass-commit
mailing list