X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=lily%2Fline-interface.cc;h=81019e210ee0718db5ef5ffa1ba9b8290ff93b41;hb=4b975f3177880e16e759f67be4517f67109c2633;hp=8262a014f900e6f47d33c9fda7e34ede6fd1a054;hpb=88596f3f4423992ea185ceb1c45c75e1b138df50;p=lilypond.git diff --git a/lily/line-interface.cc b/lily/line-interface.cc index 8262a014f9..81019e210e 100644 --- a/lily/line-interface.cc +++ b/lily/line-interface.cc @@ -17,7 +17,7 @@ Line_interface::make_arrow (Offset begin, Offset end, Real thick, Real length, Real width) { - Real angle = (end - begin).arg(); + Real angle = (end - begin).arg (); Array points; points.push (Offset (0, 0)); @@ -34,16 +34,16 @@ Stencil Line_interface::make_dashed_line (Real thick, Offset from, Offset to, Real dash_period, Real dash_fraction) { - dash_fraction = (dash_fraction >? 0) get_property ("style"); - Stencil l; + Stencil stil; SCM dash_fraction = me->get_property ("dash-fraction"); if (scm_is_number (dash_fraction) || type == ly_symbol2scm ("dotted-line")) @@ -124,21 +124,19 @@ Line_interface::line (Grob *me, Offset from, Offset to) ? 0.0 : robust_scm2double (dash_fraction, 0.4); - fraction = (fraction >? 0) get_property ("dash-period"), 1.0); if (period < 0) return Stencil (); - l = make_dashed_line (thick, from, to, period, fraction); + stil = make_dashed_line (thick, from, to, period, fraction); } else - { - l = make_line (thick, from, to); - } + stil = make_line (thick, from, to); - return l; + return stil; } ADD_INTERFACE (Line_interface, "line-interface",