[GRASS-dev] d.linegraph: secondary_width parameter defined as integer but default value is a float

Pietro peter.zamb at gmail.com
Fri Mar 23 15:54:14 PDT 2018


Dear dev,

I've noticed that the module d.linegraph define the secondary_width
parameter as follow:


```
    /* theoretically for other things than points */
    secondary_width_opt = G_define_option();
    secondary_width_opt->key = "secondary_width";
    secondary_width_opt->description = _("Width of point symbol lines");
    secondary_width_opt->type = TYPE_INTEGER;
    secondary_width_opt->required = NO;
    secondary_width_opt->multiple = YES;
    secondary_width_opt->answer = "0.1";
```

So the parameter type is supposed to be an integer, but the default value
it is a float?
Is it intentional and in case why?

All the best

Pietro
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/grass-dev/attachments/20180323/165d0bc6/attachment.html>


More information about the grass-dev mailing list