[GRASS-SVN] r44460 - grass/trunk/lib/vector/Vlib
svn_grass at osgeo.org
svn_grass at osgeo.org
Sun Nov 28 11:23:44 EST 2010
Author: mmetz
Date: 2010-11-28 08:23:44 -0800 (Sun, 28 Nov 2010)
New Revision: 44460
Modified:
grass/trunk/lib/vector/Vlib/remove_areas.c
Log:
adjusted progress report
Modified: grass/trunk/lib/vector/Vlib/remove_areas.c
===================================================================
--- grass/trunk/lib/vector/Vlib/remove_areas.c 2010-11-28 16:22:35 UTC (rev 44459)
+++ grass/trunk/lib/vector/Vlib/remove_areas.c 2010-11-28 16:23:44 UTC (rev 44460)
@@ -50,12 +50,11 @@
Cats = Vect_new_cats_struct();
nareas = Vect_get_num_areas(Map);
- for (area = 1; area <= Vect_get_num_areas(Map); area++) {
+ for (area = 1; area <= nareas; area++) {
int i, j, centroid, dissolve_neighbour;
double length, size;
- if (area <= nareas)
- G_percent(area, nareas, 1);
+ G_percent(area, nareas, 1);
G_debug(3, "area = %d", area);
if (!Vect_area_alive(Map, area))
continue;
@@ -170,6 +169,7 @@
}
nremoved++;
+ nareas = Vect_get_num_areas(Map);
}
if (removed_area)
More information about the grass-commit
mailing list