Selaa lähdekoodia

r.to.vect: fix G_percent() usage

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@58464 15284696-431f-4ddb-bdfa-cd5b030d7da7
Markus Metz 11 vuotta sitten
vanhempi
commit
e5bcf78c47
1 muutettua tiedostoa jossa 2 lisäystä ja 2 poistoa
  1. 2 2
      raster/r.to.vect/areas_io.c

+ 2 - 2
raster/r.to.vect/areas_io.c

@@ -308,6 +308,8 @@ int write_area(struct area_table *a_list,	/* list of areas */
 
     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 @@ int write_area(struct area_table *a_list,	/* list of areas */
 		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;