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

svn_grass at osgeo.org svn_grass at osgeo.org
Fri Mar 6 18:51:15 EST 2009


Author: martinl
Date: 2009-03-06 18:51:15 -0500 (Fri, 06 Mar 2009)
New Revision: 36222

Modified:
   grass/branches/develbranch_6/lib/vector/vedit/select.c
   grass/branches/develbranch_6/lib/vector/vedit/snap.c
Log:
veditlib: osgeo4w patch applied (by jef) - trac #519


Modified: grass/branches/develbranch_6/lib/vector/vedit/select.c
===================================================================
--- grass/branches/develbranch_6/lib/vector/vedit/select.c	2009-03-06 23:14:47 UTC (rev 36221)
+++ grass/branches/develbranch_6/lib/vector/vedit/select.c	2009-03-06 23:51:15 UTC (rev 36222)
@@ -138,6 +138,12 @@
 {
     int ltype;
     double length;
+    int i, cat_curr;
+    int node1, node2, node;	/* nodes */
+    int nnode1, nnode2;	/* number of line in node */
+    double nx, ny, nz;	/* node coordinates */
+    struct ilist *exclude, *found;	/* line id of nearest lines */
+    struct line_cats *Cats_curr;
 
     if (!Vect_line_alive(Map, line))
 	return -1;
@@ -171,13 +177,6 @@
 	    return -1;
 	/* check if line is dangle */
 
-	int i, cat_curr;
-	int node1, node2, node;	/* nodes */
-	int nnode1, nnode2;	/* number of line in node */
-	double nx, ny, nz;	/* node coordinates */
-	struct ilist *exclude, *found;	/* line id of nearest lines */
-	struct line_cats *Cats_curr;
-
 	Vect_get_line_nodes(Map, line, &node1, &node2);
 
 	node = -1;

Modified: grass/branches/develbranch_6/lib/vector/vedit/snap.c
===================================================================
--- grass/branches/develbranch_6/lib/vector/vedit/snap.c	2009-03-06 23:14:47 UTC (rev 36221)
+++ grass/branches/develbranch_6/lib/vector/vedit/snap.c	2009-03-06 23:51:15 UTC (rev 36222)
@@ -180,7 +180,7 @@
 		     int to_vertex)
 {
     int i, line, type;
-    int nlines_modified;
+    int nlines_modified = 0;
 
     struct line_pnts *Points;
     struct line_cats *Cats;



More information about the grass-commit mailing list