[GRASS-SVN] r34772 - grass/branches/develbranch_6/raster/r.contour

svn_grass at osgeo.org svn_grass at osgeo.org
Sun Dec 7 05:14:29 EST 2008


Author: martinl
Date: 2008-12-07 05:14:29 -0500 (Sun, 07 Dec 2008)
New Revision: 34772

Modified:
   grass/branches/develbranch_6/raster/r.contour/cont.c
Log:
r.contour: G_percent() should stay at the start of the for loop


Modified: grass/branches/develbranch_6/raster/r.contour/cont.c
===================================================================
--- grass/branches/develbranch_6/raster/r.contour/cont.c	2008-12-07 07:16:10 UTC (rev 34771)
+++ grass/branches/develbranch_6/raster/r.contour/cont.c	2008-12-07 10:14:29 UTC (rev 34772)
@@ -82,6 +82,7 @@
 
     for (n = 0; n < nlevels; n++) {
 	level = levels[n];
+	G_percent(n+1, nlevels, 2);	/* print progress */
 
 	/* initialize hit array */
 	for (i = 0; i < nrow - 1; i++) {
@@ -204,7 +205,6 @@
 		}		/* if ! hit */
 	    }			/* for rows */
 	}			/* for columns */
-	G_percent(n+1, nlevels, 2);	/* print progress */
     }				/* for levels */
 
     if (ncrossing > 0) {



More information about the grass-commit mailing list