X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=lily%2Fottava-bracket.cc;h=0639fee71991bc6ae8673df800bc817da7d103ca;hb=0b544cfb7332615ef809b71b57ab656741311ae1;hp=cbe9928b6e977b12b31d4e31aa913c9e2c667232;hpb=743f0d4b067e76d591487f085240a7ff9ace85a7;p=lilypond.git diff --git a/lily/ottava-bracket.cc b/lily/ottava-bracket.cc index cbe9928b6e..0639fee719 100644 --- a/lily/ottava-bracket.cc +++ b/lily/ottava-bracket.cc @@ -1,7 +1,7 @@ /* This file is part of LilyPond, the GNU music typesetter. - Copyright (C) 2004--2012 Han-Wen Nienhuys + Copyright (C) 2004--2014 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 @@ -56,8 +56,7 @@ Ottava_bracket::print (SCM smob) Output_def *layout = me->layout (); Drul_array broken; - Direction d = LEFT; - do + for (LEFT_and_RIGHT (d)) { Item *b = me->get_bound (d); broken[d] = (b->break_status_dir () != CENTER); @@ -75,7 +74,6 @@ Ottava_bracket::print (SCM smob) } } } - while (flip (&d) != LEFT); SCM properties = Font_interface::text_font_alist_chain (me); SCM markup = me->get_property ("text"); @@ -91,7 +89,7 @@ Ottava_bracket::print (SCM smob) TODO: we should check if there are ledgers, and modify length of the spanner to that. */ - do + for (LEFT_and_RIGHT (d)) { Item *b = me->get_bound (d); @@ -122,7 +120,6 @@ Ottava_bracket::print (SCM smob) else span_points[d] = ext[d]; } - while (flip (&d) != LEFT); /* 0.3 is ~ italic correction. @@ -144,13 +141,12 @@ Ottava_bracket::print (SCM smob) Drul_array flare = robust_scm2interval (me->get_property ("bracket-flare"), Interval (0, 0)); - do + for (LEFT_and_RIGHT (d)) { edge_height[d] *= -get_grob_direction (me); if (broken[d]) edge_height[d] = 0.0; } - while (flip (&d) != LEFT); Stencil b; Interval empty;