[GRASS-SVN] r58340 - grass/trunk/lib/vector/Vlib
svn_grass at osgeo.org
svn_grass at osgeo.org
Sat Nov 30 08:47:38 PST 2013
Author: mmetz
Date: 2013-11-30 08:47:37 -0800 (Sat, 30 Nov 2013)
New Revision: 58340
Modified:
grass/trunk/lib/vector/Vlib/break_lines.c
Log:
Vlib: break lines only for lines or boundaries
Modified: grass/trunk/lib/vector/Vlib/break_lines.c
===================================================================
--- grass/trunk/lib/vector/Vlib/break_lines.c 2013-11-30 13:41:58 UTC (rev 58339)
+++ grass/trunk/lib/vector/Vlib/break_lines.c 2013-11-30 16:47:37 UTC (rev 58340)
@@ -161,6 +161,10 @@
double nodex, nodey;
int a_is_ref, b_is_ref, break_a, break_b;
+ type &= GV_LINES;
+ if (!type)
+ return 0;
+
APoints = Vect_new_line_struct();
BPoints = Vect_new_line_struct();
Points = Vect_new_line_struct();
More information about the grass-commit
mailing list