Browse Source

Enable multiple support for the "from" and "to" option, since 2 integer values must be provided and otherwise the generated wps process description is wrong.

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@50696 15284696-431f-4ddb-bdfa-cd5b030d7da7
Soeren Gebbert 13 years ago
parent
commit
af271a8c68
1 changed files with 2 additions and 0 deletions
  1. 2 0
      raster/r.rescale/main.c

+ 2 - 0
raster/r.rescale/main.c

@@ -64,6 +64,7 @@ int main(int argc, char *argv[])
     parm.from->key_desc = "min,max";
     parm.from->type = TYPE_INTEGER;
     parm.from->required = NO;
+    parm.from->multiple = YES;
     parm.from->description =
 	_("The input data range to be rescaled (default: full range of input map)");
 
@@ -79,6 +80,7 @@ int main(int argc, char *argv[])
     parm.to->key_desc = "min,max";
     parm.to->type = TYPE_INTEGER;
     parm.to->required = YES;
+    parm.to->multiple = YES;
     parm.to->description = _("The output data range");
 
     parm.title = G_define_option();