[GRASS-SVN] r59345 - grass/trunk/raster/r.param.scale
svn_grass at osgeo.org
svn_grass at osgeo.org
Tue Mar 25 21:51:32 PDT 2014
Author: annakrat
Date: 2014-03-25 21:51:32 -0700 (Tue, 25 Mar 2014)
New Revision: 59345
Modified:
grass/trunk/raster/r.param.scale/interface.c
Log:
r.param.scale: standardize range in parameter size
Modified: grass/trunk/raster/r.param.scale/interface.c
===================================================================
--- grass/trunk/raster/r.param.scale/interface.c 2014-03-26 03:54:20 UTC (rev 59344)
+++ grass/trunk/raster/r.param.scale/interface.c 2014-03-26 04:51:32 UTC (rev 59345)
@@ -38,7 +38,7 @@
/* cell of local window if selected. */
struct GModule *module; /* GRASS module description */
- char buf[128];
+ char buf[4];
G_gisinit(argv[0]); /* GRASS function which MUST be called */
/* first to check for valid database */
@@ -88,12 +88,12 @@
tol2_val->required = NO;
tol2_val->answer = "0.0001";
- sprintf(buf, _("Size of processing window (odd number only, max: %i)"),
- MAX_WSIZE);
+ sprintf(buf, "3-%i", MAX_WSIZE);
win_size->key = "size";
- win_size->description = G_store(buf);
+ win_size->description = _("Size of processing window (odd number only)");
win_size->type = TYPE_INTEGER;
win_size->required = NO;
+ win_size->options = G_store(buf);
win_size->answer = "3";
parameter->key = "param";
More information about the grass-commit
mailing list