فهرست منبع

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