[GRASS-SVN] r34773 - grass/trunk/raster/r.contour

svn_grass at osgeo.org svn_grass at osgeo.org
Sun Dec 7 05:16:21 EST 2008


Author: martinl
Date: 2008-12-07 05:16:21 -0500 (Sun, 07 Dec 2008)
New Revision: 34773

Modified:
   grass/trunk/raster/r.contour/cont.c
Log:
r.contour: G_percent() should stay at the start of the for loop
	   (merge from devbr6, r34772)


Modified: grass/trunk/raster/r.contour/cont.c
===================================================================
--- grass/trunk/raster/r.contour/cont.c	2008-12-07 10:14:29 UTC (rev 34772)
+++ grass/trunk/raster/r.contour/cont.c	2008-12-07 10:16:21 UTC (rev 34773)
@@ -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