Преглед изворни кода

r.stream.extract: remove problematic infinity as default answer for input TYPE_DOUBLE option

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@71607 15284696-431f-4ddb-bdfa-cd5b030d7da7
Markus Metz пре 7 година
родитељ
комит
3157c212cb
1 измењених фајлова са 1 додато и 2 уклоњено
  1. 1 2
      raster/r.stream.extract/main.c

+ 1 - 2
raster/r.stream.extract/main.c

@@ -110,7 +110,6 @@ int main(int argc, char *argv[])
 	_("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();
@@ -192,7 +191,7 @@ int main(int argc, char *argv[])
 	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 {