소스 검색

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();