[GRASS-SVN] r53739 - grass/branches/releasebranch_6_4/lib/vector/Vlib

svn_grass at osgeo.org svn_grass at osgeo.org
Thu Nov 8 09:32:51 PST 2012


Author: mmetz
Date: 2012-11-08 09:32:51 -0800 (Thu, 08 Nov 2012)
New Revision: 53739

Modified:
   grass/branches/releasebranch_6_4/lib/vector/Vlib/net.c
Log:
Vlib: fix #372

Modified: grass/branches/releasebranch_6_4/lib/vector/Vlib/net.c
===================================================================
--- grass/branches/releasebranch_6_4/lib/vector/Vlib/net.c	2012-11-08 17:27:03 UTC (rev 53738)
+++ grass/branches/releasebranch_6_4/lib/vector/Vlib/net.c	2012-11-08 17:32:51 UTC (rev 53739)
@@ -383,7 +383,7 @@
 	    for (j = 0; j < nlines; j++) {
 		line = Vect_get_node_line(Map, i, j);
 		G_debug(2, "  line (%d) = %d", j, line);
-		type = Vect_read_line(Map, NULL, Cats, line);
+		type = Vect_read_line(Map, NULL, Cats, abs(line));
 		if (!(type & GV_POINT))
 		    continue;
 		if (Vect_cat_get(Cats, nfield, &cat)) {	/* point with category of field found */



More information about the grass-commit mailing list