Jelajahi Sumber

Vlib: fix https://trac.osgeo.org/grass/ticket/1933

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@55854 15284696-431f-4ddb-bdfa-cd5b030d7da7
Markus Metz 12 tahun lalu
induk
melakukan
0a24e9b905
1 mengubah file dengan 4 tambahan dan 1 penghapusan
  1. 4 1
      lib/vector/Vlib/break_lines.c

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

@@ -329,7 +329,10 @@ int break_lines(struct Map_info *Map, struct ilist *List_break,
 	    btype = Vect_read_line(Map, BPoints, BCats, bline);
 	    Vect_line_prune(BPoints);
 
-	    BBox = &List->box[j];
+	    if (j == -1)
+		BBox = &ABox;
+	    else
+		BBox = &List->box[j];
 
 	    /* Check if touch by end node only */
 	    if (!is3d) {