[GRASS-SVN] r44498 - grass/trunk/vector/v.clean
svn_grass at osgeo.org
svn_grass at osgeo.org
Tue Nov 30 04:30:57 EST 2010
Author: martinl
Date: 2010-11-30 01:30:57 -0800 (Tue, 30 Nov 2010)
New Revision: 44498
Modified:
grass/trunk/vector/v.clean/prune.c
Log:
v.clean: fix message when no vertex is removed
Modified: grass/trunk/vector/v.clean/prune.c
===================================================================
--- grass/trunk/vector/v.clean/prune.c 2010-11-29 21:21:01 UTC (rev 44497)
+++ grass/trunk/vector/v.clean/prune.c 2010-11-30 09:30:57 UTC (rev 44498)
@@ -210,7 +210,7 @@
}
G_important_message(_("%d vertices from input %d (vertices of given type) removed, i.e. %.2f %%"),
- nremoved, nvertices, 100.0 * nremoved / nvertices);
+ nremoved, nvertices, 100.0 * nremoved / (nvertices ? nvertices : 1));
if (not_pruned_lines > 0)
G_message(_("%d boundaries not pruned because pruning would damage topology"),
More information about the grass-commit
mailing list