[GRASS-SVN] r53992 - grass-addons/grass6/raster/r.stream.extract
svn_grass at osgeo.org
svn_grass at osgeo.org
Fri Nov 23 07:40:30 PST 2012
Author: mmetz
Date: 2012-11-23 07:40:30 -0800 (Fri, 23 Nov 2012)
New Revision: 53992
Modified:
grass-addons/grass6/raster/r.stream.extract/main.c
Log:
r.stream.extract: fix d8cut option
Modified: grass-addons/grass6/raster/r.stream.extract/main.c
===================================================================
--- grass-addons/grass6/raster/r.stream.extract/main.c 2012-11-23 15:40:12 UTC (rev 53991)
+++ grass-addons/grass6/raster/r.stream.extract/main.c 2012-11-23 15:40:30 UTC (rev 53992)
@@ -104,7 +104,6 @@
_("If accumulation is larger than d8cut, SFD is used instead of MFD."
" Applies only if no accumulation map is given.");
input.d8cut->required = NO;
- input.d8cut->answer = "infinity";
input.d8cut->type = TYPE_DOUBLE;
input.mont_exp = G_define_option();
@@ -178,7 +177,7 @@
G_fatal_error(_("Threshold must be > 0 but is %f"), threshold);
/* d8cut */
- if (strcmp(input.d8cut->answer, "infinity") == 0) {
+ if (!input.d8cut->answer) {
d8cut = DBL_MAX;
}
else {
More information about the grass-commit
mailing list