[GRASS-SVN] r52184 - grass/trunk/raster/r.resamp.filter
svn_grass at osgeo.org
svn_grass at osgeo.org
Fri Jun 22 03:39:43 PDT 2012
Author: annakrat
Date: 2012-06-22 03:39:41 -0700 (Fri, 22 Jun 2012)
New Revision: 52184
Modified:
grass/trunk/raster/r.resamp.filter/main.c
Log:
use atof instead of atoi for input parameter
Modified: grass/trunk/raster/r.resamp.filter/main.c
===================================================================
--- grass/trunk/raster/r.resamp.filter/main.c 2012-06-22 08:47:20 UTC (rev 52183)
+++ grass/trunk/raster/r.resamp.filter/main.c 2012-06-22 10:39:41 UTC (rev 52184)
@@ -464,8 +464,8 @@
filter = &filters[num_filters++];
type = find_method(filter_arg);
filter->func = type->func;
- filter->x_radius = fabs(atoi(x_radius_arg));
- filter->y_radius = fabs(atoi(y_radius_arg));
+ filter->x_radius = fabs(atof(x_radius_arg));
+ filter->y_radius = fabs(atof(y_radius_arg));
if (type->radius) {
double rx = type->radius * filter->x_radius;
double ry = type->radius * filter->y_radius;
More information about the grass-commit
mailing list