[GRASS-SVN] r58934 - grass/branches/releasebranch_6_4/lib/vector/vedit

svn_grass at osgeo.org svn_grass at osgeo.org
Fri Feb 7 04:07:32 PST 2014


Author: martinl
Date: 2014-02-07 04:07:32 -0800 (Fri, 07 Feb 2014)
New Revision: 58934

Modified:
   grass/branches/releasebranch_6_4/lib/vector/vedit/break.c
Log:
vlib: bugfix #719 (break with multiple coordinate pairs)
      (merge r58516 from devbr6)


Modified: grass/branches/releasebranch_6_4/lib/vector/vedit/break.c
===================================================================
--- grass/branches/releasebranch_6_4/lib/vector/vedit/break.c	2014-02-07 12:06:22 UTC (rev 58933)
+++ grass/branches/releasebranch_6_4/lib/vector/vedit/break.c	2014-02-07 12:07:32 UTC (rev 58934)
@@ -93,7 +93,10 @@
 	    Vect_append_point(Points2, px, py, 0.0);
 
 	    /* rewrite the line */
-	    newline = Vect_rewrite_line(Map, line, type, Points2, Cats);
+            if (j == 0) 
+                newline = Vect_rewrite_line(Map, line, type, Points2, Cats);
+            else
+                newline = Vect_write_line(Map, type, Points2, Cats);
 	    if (newline < 0) {
 		return -1;
 	    }



More information about the grass-commit mailing list