[GRASS-SVN] r53991 - grass-addons/grass7/raster/r.stream.extract

svn_grass at osgeo.org svn_grass at osgeo.org
Fri Nov 23 07:40:13 PST 2012


Author: mmetz
Date: 2012-11-23 07:40:12 -0800 (Fri, 23 Nov 2012)
New Revision: 53991

Modified:
   grass-addons/grass7/raster/r.stream.extract/main.c
Log:
r.stream.extract: fix d8cut option

Modified: grass-addons/grass7/raster/r.stream.extract/main.c
===================================================================
--- grass-addons/grass7/raster/r.stream.extract/main.c	2012-11-23 15:32:33 UTC (rev 53990)
+++ grass-addons/grass7/raster/r.stream.extract/main.c	2012-11-23 15:40:12 UTC (rev 53991)
@@ -192,7 +192,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