[GRASS-SVN] r43622 - grass/branches/releasebranch_6_4/vector/v.split

svn_grass at osgeo.org svn_grass at osgeo.org
Wed Sep 22 12:22:22 EDT 2010


Author: neteler
Date: 2010-09-22 16:22:21 +0000 (Wed, 22 Sep 2010)
New Revision: 43622

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

Modified: grass/branches/releasebranch_6_4/vector/v.split/main.c
===================================================================
--- grass/branches/releasebranch_6_4/vector/v.split/main.c	2010-09-22 16:14:25 UTC (rev 43621)
+++ grass/branches/releasebranch_6_4/vector/v.split/main.c	2010-09-22 16:22:21 UTC (rev 43622)
@@ -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