[GRASS-SVN] r51396 - grass/trunk/vector/v.net.allpairs

svn_grass at osgeo.org svn_grass at osgeo.org
Thu Apr 12 11:16:12 EDT 2012


Author: mmetz
Date: 2012-04-12 08:16:12 -0700 (Thu, 12 Apr 2012)
New Revision: 51396

Modified:
   grass/trunk/vector/v.net.allpairs/main.c
Log:
fix afield/nfield

Modified: grass/trunk/vector/v.net.allpairs/main.c
===================================================================
--- grass/trunk/vector/v.net.allpairs/main.c	2012-04-12 15:15:29 UTC (rev 51395)
+++ grass/trunk/vector/v.net.allpairs/main.c	2012-04-12 15:16:12 UTC (rev 51396)
@@ -147,7 +147,7 @@
 
     chcat =
 	(NetA_initialise_varray
-	 (&In, afield, GV_POINT, where_opt->answer, cat_opt->answer,
+	 (&In, nfield, GV_POINT, where_opt->answer, cat_opt->answer,
 	  &varray) == 1);
 
     /* Create table */
@@ -217,7 +217,7 @@
 
 	    /* Vect_get_line_nodes(&In, i, &node, NULL); */
 	    node = Vect_find_node(&In, Points->x[0], Points->y[0], Points->z[0], 0, 0);
-	    Vect_cat_get(Cats, afield, &cats[node]);
+	    Vect_cat_get(Cats, nfield, &cats[node]);
 	    if (cats[node] != -1) {
 		Vect_write_line(&Out, GV_POINT, Points, Cats);
 		if (!chcat || varray->c[i])



More information about the grass-commit mailing list