瀏覽代碼

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 11 年之前
父節點
當前提交
40f2d6440a
共有 1 個文件被更改,包括 4 次插入0 次删除
  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();