[GRASS-SVN] r32641 - grass/trunk/lib/vector/vedit
svn_grass at osgeo.org
svn_grass at osgeo.org
Fri Aug 8 08:46:26 EDT 2008
Author: martinl
Date: 2008-08-08 08:46:26 -0400 (Fri, 08 Aug 2008)
New Revision: 32641
Modified:
grass/trunk/lib/vector/vedit/break.c
Log:
veditlib: bugfix in connect_lines() (variable typo)
[merge from devbr6, r32640]
Modified: grass/trunk/lib/vector/vedit/break.c
===================================================================
--- grass/trunk/lib/vector/vedit/break.c 2008-08-08 12:44:07 UTC (rev 32640)
+++ grass/trunk/lib/vector/vedit/break.c 2008-08-08 12:46:26 UTC (rev 32641)
@@ -1,4 +1,3 @@
-
/**
\file vector/vedit/break.c
@@ -258,14 +257,14 @@
fx, fy, 0.0, WITHOUT_Z);
dist_2 = Vect_points_distance(x1, y1, 0.0,
x, y, 0.0, WITHOUT_Z);
- dist_3 = Vect_points_distance(x1, x1, 0.0,
+ dist_3 = Vect_points_distance(x1, y1, 0.0,
fx, fy, 0.0, WITHOUT_Z);
-
+
if (dist_3 < dist_1 + dist_2) {
seg = Vect_point_on_line(Points_to, lpdist - dist_p,
&fx, &fy, NULL, NULL, NULL);
}
-
+
if (seg > 0) {
/* lines connected -> split line_to */
/* update line_from */
@@ -280,9 +279,8 @@
Points_from->y[n_points] = fy;
Points_from->z[n_points] = 0.0;
}
- line_new =
- Vect_rewrite_line(Map, line_from, type_from,
- Points_from, Cats_from);
+ line_new = Vect_rewrite_line(Map, line_from, type_from,
+ Points_from, Cats_from);
Vect_list_append(List, line_new);
/* update line_to -- first part */
More information about the grass-commit
mailing list