X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=lily%2Fline-interface.cc;h=2fa6d61bb718e9ff2faeada5956de522461a4025;hb=09bf9a18185476020686ff65b5d70b57051be780;hp=13f5a8cdef59e6d863e4745d379712eb75ae52e1;hpb=2909349bdbefbf880fa9c8c47ba2eddf9f9855ca;p=lilypond.git diff --git a/lily/line-interface.cc b/lily/line-interface.cc index 13f5a8cdef..2fa6d61bb7 100644 --- a/lily/line-interface.cc +++ b/lily/line-interface.cc @@ -3,7 +3,7 @@ source file of the GNU LilyPond music typesetter - (c) 2004--2007 Han-Wen Nienhuys + (c) 2004--2009 Han-Wen Nienhuys */ #include "line-interface.hh" @@ -111,13 +111,7 @@ Line_interface::make_zigzag_line (Grob *me, total.add_stencil (moved_squiggle); } - Box b; - b.add_point (Offset (0, 0)); - b.add_point (dz); - b[X_AXIS].widen (thick / 2); - b[Y_AXIS].widen (thick / 2); - - return Stencil (b, total.expr ()); + return total; } @@ -210,7 +204,7 @@ Line_interface::line (Grob *me, Offset from, Offset to) else if (type == ly_symbol2scm ("trill")) return make_trill_line (me, from, to); - Stencil stil; + Stencil stencil; if (type == ly_symbol2scm ("dashed-line") || type == ly_symbol2scm ("dotted-line")) { @@ -239,12 +233,12 @@ Line_interface::line (Grob *me, Offset from, Offset to) */ period = ((to-from).length () - period * fraction) / n; } - stil = make_dashed_line (thick, from, to, period, fraction); + stencil = make_dashed_line (thick, from, to, period, fraction); } else - stil = make_line (thick, from, to); + stencil = make_line (thick, from, to); - return stil; + return stencil; } ADD_INTERFACE (Line_interface,