[GRASS-SVN] r59730 - grass/branches/releasebranch_7_0/vector/v.distance
svn_grass at osgeo.org
svn_grass at osgeo.org
Mon Apr 14 00:28:39 PDT 2014
Author: neteler
Date: 2014-04-14 00:28:39 -0700 (Mon, 14 Apr 2014)
New Revision: 59730
Modified:
grass/branches/releasebranch_7_0/vector/v.distance/main.c
Log:
v.distance: fix percent counter (backport of r59724)
Modified: grass/branches/releasebranch_7_0/vector/v.distance/main.c
===================================================================
--- grass/branches/releasebranch_7_0/vector/v.distance/main.c 2014-04-14 07:25:45 UTC (rev 59729)
+++ grass/branches/releasebranch_7_0/vector/v.distance/main.c 2014-04-14 07:28:39 UTC (rev 59730)
@@ -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