[GRASS-SVN] r53738 - grass/trunk/lib/vector/Vlib

svn_grass at osgeo.org svn_grass at osgeo.org
Thu Nov 8 09:27:03 PST 2012


Author: mmetz
Date: 2012-11-08 09:27:03 -0800 (Thu, 08 Nov 2012)
New Revision: 53738

Modified:
   grass/trunk/lib/vector/Vlib/net.c
Log:
Vlib: fix index to array

Modified: grass/trunk/lib/vector/Vlib/net.c
===================================================================
--- grass/trunk/lib/vector/Vlib/net.c	2012-11-08 14:37:21 UTC (rev 53737)
+++ grass/trunk/lib/vector/Vlib/net.c	2012-11-08 17:27:03 UTC (rev 53738)
@@ -390,7 +390,7 @@
 	    dcost = 0;
 
 	    for (j = 0; j < List->n_values; j++) {
-		line = List->id[i];
+		line = List->id[j];
 		G_debug(2, "  line (%d) = %d", j, line);
 		type = Vect_read_line(Map, NULL, Cats, line);
 		if (!(type & GV_POINT))



More information about the grass-commit mailing list