[GRASS-SVN] r39986 - grass/branches/develbranch_6/lib/gis

svn_grass at osgeo.org svn_grass at osgeo.org
Mon Dec 14 00:14:41 EST 2009


Author: hamish
Date: 2009-12-14 00:14:39 -0500 (Mon, 14 Dec 2009)
New Revision: 39986

Modified:
   grass/branches/develbranch_6/lib/gis/clicker.c
Log:
respect --quiet (merge from G_percent)

Modified: grass/branches/develbranch_6/lib/gis/clicker.c
===================================================================
--- grass/branches/develbranch_6/lib/gis/clicker.c	2009-12-13 06:47:38 UTC (rev 39985)
+++ grass/branches/develbranch_6/lib/gis/clicker.c	2009-12-14 05:14:39 UTC (rev 39986)
@@ -15,9 +15,12 @@
     int x;
     static char clicks[] = "|/-\\";
 
+    /* be verbose only 1> */
+    if (format == G_INFO_FORMAT_SILENT || G_verbose() < 1)
+        return 0;
+
     if (G_clicker_prev == -1 || G_clicker_prev == 3)
 	x = 0;
-
     else
 	x = G_clicker_prev + 1;
 



More information about the grass-commit mailing list