[GRASS-SVN] r53638 - grass/branches/develbranch_6/vector/v.net.centrality

svn_grass at osgeo.org svn_grass at osgeo.org
Thu Nov 1 11:08:02 PDT 2012


Author: mmetz
Date: 2012-11-01 11:08:00 -0700 (Thu, 01 Nov 2012)
New Revision: 53638

Modified:
   grass/branches/develbranch_6/vector/v.net.centrality/main.c
Log:
v.net.centrality: fix for #1779

Modified: grass/branches/develbranch_6/vector/v.net.centrality/main.c
===================================================================
--- grass/branches/develbranch_6/vector/v.net.centrality/main.c	2012-11-01 18:07:06 UTC (rev 53637)
+++ grass/branches/develbranch_6/vector/v.net.centrality/main.c	2012-11-01 18:08:00 UTC (rev 53638)
@@ -322,6 +322,8 @@
 
 	    if (!Vect_cat_get(Cats, layer, &cat))
 		continue;
+	    Vect_reset_cats(Cats);
+	    Vect_cat_set(Cats, 1, cat);
 	    Vect_write_line(&Out, type, Points, Cats);
 	    Vect_get_line_nodes(&In, i, &node, NULL);
 	    process_node(node, cat);



More information about the grass-commit mailing list