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

Markus Neteler neteler at osgeo.org
Fri Mar 23 16:54:31 PDT 2018


On Fri, Mar 23, 2018 at 11:54 PM, Pietro <peter.zamb at gmail.com> wrote:
> 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?

It came in through r69694. Probably simply an oversight?

ciao
Markus


More information about the grass-dev mailing list