[GRASS-SVN] r32640 - grass/branches/develbranch_6/lib/vector/vedit

svn_grass at osgeo.org svn_grass at osgeo.org
Fri Aug 8 08:44:12 EDT 2008


Author: martinl
Date: 2008-08-08 08:44:07 -0400 (Fri, 08 Aug 2008)
New Revision: 32640

Modified:
   grass/branches/develbranch_6/lib/vector/vedit/break.c
Log:
veditlib: bugfix in connect_lines() (variable typo)

Modified: grass/branches/develbranch_6/lib/vector/vedit/break.c
===================================================================
--- grass/branches/develbranch_6/lib/vector/vedit/break.c	2008-08-08 12:24:54 UTC (rev 32639)
+++ grass/branches/develbranch_6/lib/vector/vedit/break.c	2008-08-08 12:44:07 UTC (rev 32640)
@@ -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