X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=lily%2Fsystem-start-delimiter.cc;h=6a898559b317e7eb1fdaba6d93a8197100807474;hb=47db9a3883d726ca53e2133a3b2298f78dd6a32e;hp=815d94e7cf00b2466fd301f127c5284feea25eae;hpb=4a401ca1c60f428daa242dbdd102fdb3f327ebfb;p=lilypond.git diff --git a/lily/system-start-delimiter.cc b/lily/system-start-delimiter.cc index 815d94e7cf..6a898559b3 100644 --- a/lily/system-start-delimiter.cc +++ b/lily/system-start-delimiter.cc @@ -1,7 +1,7 @@ /* This file is part of LilyPond, the GNU music typesetter. - Copyright (C) 2000--2011 Han-Wen Nienhuys + Copyright (C) 2000--2015 Han-Wen Nienhuys LilyPond is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -47,10 +47,8 @@ System_start_delimiter::staff_bracket (Grob *me, Real height) * (height / 2 + overlap)); Stencil bracket = Lookup::filled_box (box); - Direction d = DOWN; - do + for (DOWN_and_UP (d)) bracket.add_at_edge (Y_AXIS, d, tips[d], -overlap); - while (flip (&d) != DOWN); bracket = Stencil (box, bracket.expr ()); bracket.translate_axis (-0.8, X_AXIS); @@ -95,7 +93,7 @@ MAKE_SCHEME_CALLBACK (System_start_delimiter, print, 1); SCM System_start_delimiter::print (SCM smob) { - Spanner *me = unsmob_spanner (smob); + Spanner *me = Spanner::unsmob (smob); extract_grob_set (me, "elements", elts); Grob *common = common_refpoint_of_array (elts, me, Y_AXIS); @@ -171,7 +169,7 @@ System_start_delimiter::staff_brace (Grob *me, Real y) } while (hi - lo > 1); - Stencil stil (fm->find_by_name ("brace" + to_string (lo))); + Stencil stil (fm->find_by_name ("brace" + ::to_string (lo))); stil.translate_axis (-b[X_AXIS].length () / 2, X_AXIS); stil.translate_axis (-0.2, X_AXIS);