[GRASS-SVN] r73313 - grass/trunk/vector/v.distance

svn_grass at osgeo.org svn_grass at osgeo.org
Tue Sep 11 02:25:05 PDT 2018


Author: mmetz
Date: 2018-09-11 02:25:05 -0700 (Tue, 11 Sep 2018)
New Revision: 73313

Modified:
   grass/trunk/vector/v.distance/main.c
Log:
v.distance: G_percent cosmetics

Modified: grass/trunk/vector/v.distance/main.c
===================================================================
--- grass/trunk/vector/v.distance/main.c	2018-09-11 02:36:57 UTC (rev 73312)
+++ grass/trunk/vector/v.distance/main.c	2018-09-11 09:25:05 UTC (rev 73313)
@@ -698,7 +698,7 @@
 	near = NULL;
 	nlines = Vect_get_num_lines(&From);
 
-	G_percent(0, 0, 4);
+	G_percent(0, nlines, 4);
 	for (fline = 1; fline <= nlines; fline++) {
 	    int tmp_tcat;
 	    double tmp_min = (min < 0 ? 0 : min);
@@ -982,6 +982,7 @@
 	near = NULL;
 
 	G_message(_("Finding nearest features for areas..."));
+	G_percent(0, nfromareas, 2);
 	for (area = 1; area <= nfromareas; area++) {
 	    int tmp_tcat;
 	    double tmp_min = (min < 0 ? 0 : min);



More information about the grass-commit mailing list