Sfoglia il codice sorgente

veditlib: add some debug messages (cosmetics)

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@51048 15284696-431f-4ddb-bdfa-cd5b030d7da7
Martin Landa 13 anni fa
parent
commit
6a7d47f598
1 ha cambiato i file con 6 aggiunte e 4 eliminazioni
  1. 6 4
      lib/vector/vedit/vertex.c

+ 6 - 4
lib/vector/vedit/vertex.c

@@ -220,10 +220,13 @@ int Vedit_add_vertex(struct Map_info *Map, struct ilist *List,
 	if (!(type & GV_LINES))
 	if (!(type & GV_LINES))
 	    continue;
 	    continue;
 
 
+	G_debug(3, "Vedit_add_vertex(): line = %d, thresh = %f",
+		line, thresh);
+
 	x = Points->x;
 	x = Points->x;
 	y = Points->y;
 	y = Points->y;
 	z = Points->z;
 	z = Points->z;
-	rewrite = 0;
+	rewrite = FALSE;
 	for (j = 0; j < coord->n_points; j++) {
 	for (j = 0; j < coord->n_points; j++) {
 	    east = coord->x[j];
 	    east = coord->x[j];
 	    north = coord->y[j];
 	    north = coord->y[j];
@@ -240,10 +243,9 @@ int Vedit_add_vertex(struct Map_info *Map, struct ilist *List,
 				     z[seg - 1], WITHOUT_Z) > 0) {
 				     z[seg - 1], WITHOUT_Z) > 0) {
 		/* add new vertex */
 		/* add new vertex */
 		Vect_line_insert_point(Points, seg, px, py, 0.0);
 		Vect_line_insert_point(Points, seg, px, py, 0.0);
-		G_debug(3,
-			"Vedit_add_vertex(): line=%d; x=%f, y=%f, index=%d",
+		G_debug(3, "Vedit_add_vertex(): line=%d; x=%f, y=%f, index=%d",
 			line, px, py, seg);
 			line, px, py, seg);
-		rewrite = 1;
+		rewrite = TRUE;
 		nvertices_added++;
 		nvertices_added++;
 	    }
 	    }
 	}			/* for each point */
 	}			/* for each point */