[GRASS-SVN] r37782 - grass/branches/develbranch_6/lib/vector/Vlib

svn_grass at osgeo.org svn_grass at osgeo.org
Tue Jun 9 03:24:43 EDT 2009


Author: mmetz
Date: 2009-06-09 03:24:42 -0400 (Tue, 09 Jun 2009)
New Revision: 37782

Modified:
   grass/branches/develbranch_6/lib/vector/Vlib/map.c
Log:
Vect_copy_map_lines: don't read dead lines. Merge from trunk r37781

Modified: grass/branches/develbranch_6/lib/vector/Vlib/map.c
===================================================================
--- grass/branches/develbranch_6/lib/vector/Vlib/map.c	2009-06-09 07:15:36 UTC (rev 37781)
+++ grass/branches/develbranch_6/lib/vector/Vlib/map.c	2009-06-09 07:24:42 UTC (rev 37782)
@@ -60,6 +60,9 @@
     if (Vect_level(In) >= 2) {
 	nlines = Vect_get_num_lines(In);
 	for (i = 1; i <= nlines; i++) {
+            if (!Vect_line_alive(In, i))
+                continue;
+
 	    type = Vect_read_line(In, Points, Cats, i);
 	    if (type == -1) {
 		G_warning(_("Unable to read vector map <%s>"),



More information about the grass-commit mailing list