[GRASS-SVN] r58464 - grass/trunk/raster/r.to.vect

svn_grass at osgeo.org svn_grass at osgeo.org
Sun Dec 15 06:48:05 PST 2013


Author: mmetz
Date: 2013-12-15 06:48:05 -0800 (Sun, 15 Dec 2013)
New Revision: 58464

Modified:
   grass/trunk/raster/r.to.vect/areas_io.c
Log:
r.to.vect: fix G_percent() usage

Modified: grass/trunk/raster/r.to.vect/areas_io.c
===================================================================
--- grass/trunk/raster/r.to.vect/areas_io.c	2013-12-14 22:40:25 UTC (rev 58463)
+++ grass/trunk/raster/r.to.vect/areas_io.c	2013-12-15 14:48:05 UTC (rev 58464)
@@ -308,6 +308,8 @@
 
     G_important_message(_("Writing areas..."));
     for (i = 0, p = a_list; i < n_areas; i++, p++) {
+	G_percent(i, n_areas, 3);
+
 	if (equivs[i] == i && p->width > 0 && !Rast_is_d_null_value(&(p->cat))) {
 	    char buf[1000];
 
@@ -319,8 +321,6 @@
 		catNum++;
 	    }
 
-            G_percent(i, n_areas, 3);
-            
 	    x = cell_head.west + (p->col +
 				  (p->width / 2.0)) * cell_head.ew_res;
 	    y = cell_head.north - (p->row + 0.5) * cell_head.ns_res;



More information about the grass-commit mailing list