[GRASS-SVN] r42353 - grass/branches/develbranch_6/vector/v.split

svn_grass at osgeo.org svn_grass at osgeo.org
Wed May 26 04:25:59 EDT 2010


Author: mmetz
Date: 2010-05-26 04:25:34 -0400 (Wed, 26 May 2010)
New Revision: 42353

Modified:
   grass/branches/develbranch_6/vector/v.split/main.c
Log:
do not attempt to read dead line

Modified: grass/branches/develbranch_6/vector/v.split/main.c
===================================================================
--- grass/branches/develbranch_6/vector/v.split/main.c	2010-05-26 07:43:53 UTC (rev 42352)
+++ grass/branches/develbranch_6/vector/v.split/main.c	2010-05-26 08:25:34 UTC (rev 42353)
@@ -100,6 +100,9 @@
 
 	G_percent(line, nlines, 1);
 
+	if (!Vect_line_alive(&In, line))
+	    continue;
+
 	ltype = Vect_read_line(&In, Points, Cats, line);
 
 	if (ltype & GV_LINES) {



More information about the grass-commit mailing list