[GRASS-SVN] r44966 - grass/trunk/vector/v.clean

svn_grass at osgeo.org svn_grass at osgeo.org
Tue Jan 11 13:37:06 EST 2011


Author: mmetz
Date: 2011-01-11 10:37:06 -0800 (Tue, 11 Jan 2011)
New Revision: 44966

Modified:
   grass/trunk/vector/v.clean/main.c
Log:
print warning only when appropriate

Modified: grass/trunk/vector/v.clean/main.c
===================================================================
--- grass/trunk/vector/v.clean/main.c	2011-01-11 18:35:47 UTC (rev 44965)
+++ grass/trunk/vector/v.clean/main.c	2011-01-11 18:37:06 UTC (rev 44966)
@@ -175,9 +175,9 @@
 	threshs[i] = atof(thresh_opt->answers[i]);
 	G_debug(1, "thresh : %s -> %f ", tool_opt->answers[i], threshs[i]);
 
-	if (tools[i] != TOOL_SNAP && tools[i] != TOOL_RMDANGLE &&
-	    tools[i] != TOOL_CHDANGLE && tools[i] != TOOL_PRUNE &&
-	    tools[i] != TOOL_RMAREA) {
+	if (threshs[i] != 0 && tools[i] != TOOL_SNAP &&
+	    tools[i] != TOOL_RMDANGLE && tools[i] != TOOL_CHDANGLE && 
+	    tools[i] != TOOL_PRUNE && tools[i] != TOOL_RMAREA) {
 	    G_warning(_("Threshold for tool %d may not be > 0, set to 0"),
 		      i + 1);
 	    threshs[i] = 0.0;



More information about the grass-commit mailing list