+ Real fraction = 1.0;
+ s = me->get_grob_property ("dash-fraction");
+ if (gh_number_p (s))
+ fraction = gh_scm2double (s);
+
+ /*
+ TODO: set line style.
+ */
+ Molecule mol;
+ if (fraction < 1.0)
+ {
+ mol = Lookup::dashed_line (thick,
+ Offset (0, starth),
+ Offset (width, endh),
+ period, fraction);
+ mol.add_molecule (Lookup::dashed_line (thick,
+ Offset (0, -starth),
+ Offset (width, -endh),
+ period, fraction));
+ }
+ else
+ {
+ mol = Lookup::line (thick,
+ Offset (0, starth),
+ Offset (width, endh));
+ mol.add_molecule (Lookup::line (thick,
+ Offset (0, -starth),
+ Offset (width, -endh)
+ ));
+ }