浏览代码

Vlib: fix index to array

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@53738 15284696-431f-4ddb-bdfa-cd5b030d7da7
Markus Metz 12 年之前
父节点
当前提交
e8f69b5901
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      lib/vector/Vlib/net.c

+ 1 - 1
lib/vector/Vlib/net.c

@@ -390,7 +390,7 @@ Vect_net_build_graph(struct Map_info *Map,
 	    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))