[GRASS-SVN] r58516 - grass/branches/develbranch_6/lib/vector/vedit
svn_grass at osgeo.org
svn_grass at osgeo.org
Mon Dec 23 08:38:56 PST 2013
Author: martinl
Date: 2013-12-23 08:38:56 -0800 (Mon, 23 Dec 2013)
New Revision: 58516
Modified:
grass/branches/develbranch_6/lib/vector/vedit/break.c
Log:
vlib: bugfix #719 (break with multiple coordinate pairs)
Modified: grass/branches/develbranch_6/lib/vector/vedit/break.c
===================================================================
--- grass/branches/develbranch_6/lib/vector/vedit/break.c 2013-12-23 16:33:40 UTC (rev 58515)
+++ grass/branches/develbranch_6/lib/vector/vedit/break.c 2013-12-23 16:38:56 UTC (rev 58516)
@@ -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