[GRASS-SVN] r51048 - grass/trunk/lib/vector/vedit

svn_grass at osgeo.org svn_grass at osgeo.org
Mon Mar 12 07:42:23 EDT 2012


Author: martinl
Date: 2012-03-12 04:42:23 -0700 (Mon, 12 Mar 2012)
New Revision: 51048

Modified:
   grass/trunk/lib/vector/vedit/vertex.c
Log:
veditlib: add some debug messages (cosmetics)


Modified: grass/trunk/lib/vector/vedit/vertex.c
===================================================================
--- grass/trunk/lib/vector/vedit/vertex.c	2012-03-12 11:17:58 UTC (rev 51047)
+++ grass/trunk/lib/vector/vedit/vertex.c	2012-03-12 11:42:23 UTC (rev 51048)
@@ -220,10 +220,13 @@
 	if (!(type & GV_LINES))
 	    continue;
 
+	G_debug(3, "Vedit_add_vertex(): line = %d, thresh = %f",
+		line, thresh);
+
 	x = Points->x;
 	y = Points->y;
 	z = Points->z;
-	rewrite = 0;
+	rewrite = FALSE;
 	for (j = 0; j < coord->n_points; j++) {
 	    east = coord->x[j];
 	    north = coord->y[j];
@@ -240,10 +243,9 @@
 				     z[seg - 1], WITHOUT_Z) > 0) {
 		/* add new vertex */
 		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);
-		rewrite = 1;
+		rewrite = TRUE;
 		nvertices_added++;
 	    }
 	}			/* for each point */



More information about the grass-commit mailing list