Explorar o código

Vlib: break lines only for lines or boundaries

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@58340 15284696-431f-4ddb-bdfa-cd5b030d7da7
Markus Metz %!s(int64=11) %!d(string=hai) anos
pai
achega
40f2d6440a
Modificáronse 1 ficheiros con 4 adicións e 0 borrados
  1. 4 0
      lib/vector/Vlib/break_lines.c

+ 4 - 0
lib/vector/Vlib/break_lines.c

@@ -161,6 +161,10 @@ int break_lines(struct Map_info *Map, struct ilist *List_break,
     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();