[GRASS-SVN] r36224 - grass/trunk/lib/vector/vedit
svn_grass at osgeo.org
svn_grass at osgeo.org
Fri Mar 6 19:03:12 EST 2009
Author: martinl
Date: 2009-03-06 19:03:11 -0500 (Fri, 06 Mar 2009)
New Revision: 36224
Modified:
grass/trunk/lib/vector/vedit/select.c
grass/trunk/lib/vector/vedit/snap.c
Log:
veditlib: osgeo4w patch applied (by jef) - trac #519
(merge from devbr6, r36222)
Modified: grass/trunk/lib/vector/vedit/select.c
===================================================================
--- grass/trunk/lib/vector/vedit/select.c 2009-03-07 00:01:37 UTC (rev 36223)
+++ grass/trunk/lib/vector/vedit/select.c 2009-03-07 00:03:11 UTC (rev 36224)
@@ -139,6 +139,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;
@@ -172,13 +178,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/trunk/lib/vector/vedit/snap.c
===================================================================
--- grass/trunk/lib/vector/vedit/snap.c 2009-03-07 00:01:37 UTC (rev 36223)
+++ grass/trunk/lib/vector/vedit/snap.c 2009-03-07 00:03:11 UTC (rev 36224)
@@ -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