[GRASS-SVN] r69564 - grass/branches/releasebranch_7_0/lib/vector/vedit

svn_grass at osgeo.org svn_grass at osgeo.org
Fri Sep 23 12:55:33 PDT 2016


Author: mmetz
Date: 2016-09-23 12:55:33 -0700 (Fri, 23 Sep 2016)
New Revision: 69564

Modified:
   grass/branches/releasebranch_7_0/lib/vector/vedit/merge.c
Log:
v.edit tool=merge: improve skip invalid lines (backport trunk r69562)

Modified: grass/branches/releasebranch_7_0/lib/vector/vedit/merge.c
===================================================================
--- grass/branches/releasebranch_7_0/lib/vector/vedit/merge.c	2016-09-23 19:55:16 UTC (rev 69563)
+++ grass/branches/releasebranch_7_0/lib/vector/vedit/merge.c	2016-09-23 19:55:33 UTC (rev 69564)
@@ -91,7 +91,7 @@
 	/* remove duplicate points */
 	Vect_line_prune(Points1);
 
-	if (Points1->n_points == 1) {
+	if (Points1->n_points < 2) {
 	    G_debug(3, "Vedit_merge_lines(): skipping zero length line");
 	    continue;
 	}



More information about the grass-commit mailing list