[GRASS-SVN] r53639 - grass/branches/releasebranch_6_4/vector/v.net.centrality

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


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

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

Modified: grass/branches/releasebranch_6_4/vector/v.net.centrality/main.c
===================================================================
--- grass/branches/releasebranch_6_4/vector/v.net.centrality/main.c	2012-11-01 18:08:00 UTC (rev 53638)
+++ grass/branches/releasebranch_6_4/vector/v.net.centrality/main.c	2012-11-01 18:08:17 UTC (rev 53639)
@@ -319,6 +319,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