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

svn_grass at osgeo.org svn_grass at osgeo.org
Sun Apr 13 12:46:44 PDT 2014


Author: mmetz
Date: 2014-04-13 12:46:44 -0700 (Sun, 13 Apr 2014)
New Revision: 59724

Modified:
   grass/trunk/vector/v.distance/main.c
Log:
v.distance: fix percent counter

Modified: grass/trunk/vector/v.distance/main.c
===================================================================
--- grass/trunk/vector/v.distance/main.c	2014-04-13 19:37:38 UTC (rev 59723)
+++ grass/trunk/vector/v.distance/main.c	2014-04-13 19:46:44 UTC (rev 59724)
@@ -594,6 +594,7 @@
 	near = NULL;
 	nlines = Vect_get_num_lines(&From);
 
+	G_percent(0, 0, 4);
 	for (fline = 1; fline <= nlines; fline++) {
 	    int tmp_tcat;
 	    double tmp_min = (min < 0 ? 0 : min);
@@ -603,7 +604,7 @@
 	    curr_step = 0;
 
 	    G_debug(3, "fline = %d", fline);
-	    G_percent(fline, nfrom, 2);
+	    G_percent(fline, nlines, 4);
 	    ftype = Vect_get_line_type(&From, fline);
 	    if (!(ftype & from_type))
 		continue;



More information about the grass-commit mailing list