<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Mar 23, 2018 at 7:54 PM, Markus Neteler <span dir="ltr"><<a href="mailto:neteler@osgeo.org" target="_blank">neteler@osgeo.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><span class="gmail-">On Fri, Mar 23, 2018 at 11:54 PM, Pietro <<a href="mailto:peter.zamb@gmail.com">peter.zamb@gmail.com</a>> wrote:<br>
> Dear dev,<br>
><br>
> I've noticed that the module d.linegraph define the secondary_width<br>
> parameter as follow:<br>
><br>
><br>
> ```<br>
>     /* theoretically for other things than points */<br>
>     secondary_width_opt = G_define_option();<br>
>     secondary_width_opt->key = "secondary_width";<br>
>     secondary_width_opt-><wbr>description = _("Width of point symbol lines");<br>
>     secondary_width_opt->type = TYPE_INTEGER;<br>
>     secondary_width_opt->required = NO;<br>
>     secondary_width_opt->multiple = YES;<br>
>     secondary_width_opt->answer = "0.1";<br>
> ```<br>
><br>
> So the parameter type is supposed to be an integer, but the default value it<br>
> is a float?<br>
> Is it intentional and in case why?<br>
<br>
</span>It came in through r69694. Probably simply an oversight?<br></blockquote><div><br><br>secondary_width_opt is used to set symbol_line_width which is of type double, the conversion is done with atof(), and symbol_line_width is used for D_line_width() which takes double, so no, it is not intentional. Fixed in r72558, backported to 7.4 in 72559.<br><br><a href="https://trac.osgeo.org/grass/browser/grass/trunk/display/d.linegraph/main.c">https://trac.osgeo.org/grass/browser/grass/trunk/display/d.linegraph/main.c</a><br><a href="https://trac.osgeo.org/grass/changeset/69694">https://trac.osgeo.org/grass/changeset/69694</a><br></div></div><a href="https://grass.osgeo.org/programming7/draw2_8c.html#a7d7fc5729a6e6d14ad6403ed53466414">https://grass.osgeo.org/programming7/draw2_8c.html#a7d7fc5729a6e6d14ad6403ed53466414</a><br><a href="https://trac.osgeo.org/grass/changeset/72558">https://trac.osgeo.org/grass/changeset/72558</a><br></div></div>