[GRASS-SVN] r37781 - grass/trunk/lib/vector/Vlib
svn_grass at osgeo.org
svn_grass at osgeo.org
Tue Jun 9 03:15:37 EDT 2009
Author: mmetz
Date: 2009-06-09 03:15:36 -0400 (Tue, 09 Jun 2009)
New Revision: 37781
Modified:
grass/trunk/lib/vector/Vlib/map.c
Log:
Vect_copy_map_lines: don't read dead lines
Modified: grass/trunk/lib/vector/Vlib/map.c
===================================================================
--- grass/trunk/lib/vector/Vlib/map.c 2009-06-09 03:47:19 UTC (rev 37780)
+++ grass/trunk/lib/vector/Vlib/map.c 2009-06-09 07:15:36 UTC (rev 37781)
@@ -57,6 +57,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