[GRASS-SVN] r35093 - grass/branches/releasebranch_6_4/lib/vector/Vlib

svn_grass at osgeo.org svn_grass at osgeo.org
Mon Dec 29 10:59:58 EST 2008


Author: neteler
Date: 2008-12-29 10:59:58 -0500 (Mon, 29 Dec 2008)
New Revision: 35093

Modified:
   grass/branches/releasebranch_6_4/lib/vector/Vlib/build_nat.c
Log:
use G_INFO_FORMAT_PLAIN if requested (merge from trunk, r35091)

Modified: grass/branches/releasebranch_6_4/lib/vector/Vlib/build_nat.c
===================================================================
--- grass/branches/releasebranch_6_4/lib/vector/Vlib/build_nat.c	2008-12-29 15:58:09 UTC (rev 35092)
+++ grass/branches/releasebranch_6_4/lib/vector/Vlib/build_nat.c	2008-12-29 15:59:58 UTC (rev 35093)
@@ -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