瀏覽代碼

r.contour: G_percent() should stay at the start of the for loop
(merge from devbr6, https://trac.osgeo.org/grass/changeset/34772)


git-svn-id: https://svn.osgeo.org/grass/grass/trunk@34773 15284696-431f-4ddb-bdfa-cd5b030d7da7

Martin Landa 16 年之前
父節點
當前提交
45cd31aea0
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      raster/r.contour/cont.c

+ 1 - 1
raster/r.contour/cont.c

@@ -82,6 +82,7 @@ void contour(double levels[],
 
     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 @@ void contour(double levels[],
 		}		/* if ! hit */
 	    }			/* for rows */
 	}			/* for columns */
-	G_percent(n+1, nlevels, 2);	/* print progress */
     }				/* for levels */
 
     if (ncrossing > 0) {