[GRASS-SVN] r35091 - grass/trunk/lib/vector/Vlib
svn_grass at osgeo.org
svn_grass at osgeo.org
Mon Dec 29 10:57:06 EST 2008
Author: neteler
Date: 2008-12-29 10:57:06 -0500 (Mon, 29 Dec 2008)
New Revision: 35091
Modified:
grass/trunk/lib/vector/Vlib/build_nat.c
Log:
use G_INFO_FORMAT_PLAIN if requested
Modified: grass/trunk/lib/vector/Vlib/build_nat.c
===================================================================
--- grass/trunk/lib/vector/Vlib/build_nat.c 2008-12-29 04:46:14 UTC (rev 35090)
+++ grass/trunk/lib/vector/Vlib/build_nat.c 2008-12-29 15:57:06 UTC (rev 35091)
@@ -492,8 +492,10 @@
List = Vect_new_list();
if (plus->built < GV_BUILD_BASE) {
- int npoints;
+ int npoints, format;
+ format = G_info_format();
+
/*
* We shall go through all primitives in coor file and
* add new node for each end point to nodes structure
@@ -543,13 +545,16 @@
}
if (G_verbose() > G_verbose_min() && i % 1000 == 0) {
- fprintf(stderr, "%7d\b\b\b\b\b\b\b", i);
+ if (format == G_INFO_FORMAT_PLAIN)
+ fprintf(stderr, "%d..", i);
+ else
+ fprintf(stderr, "%7d\b\b\b\b\b\b\b", i);
}
i++;
}
- if (G_verbose() > G_verbose_min())
+ if ( (G_verbose() > G_verbose_min() ) && format != G_INFO_FORMAT_PLAIN )
fprintf(stderr, "\r");
G_message(_("%d primitives registered"), plus->n_lines);
More information about the grass-commit
mailing list