X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=lily%2Fpiano-pedal-bracket.cc;h=534d5812ec95c1c8cfaa88670a8f2fdda2e4e3cf;hb=646848f37e1b5faca1678fb4d1845216f2a41993;hp=4c8efd4d0f7d61b93f33092e724e835c12f3b7f9;hpb=d61cf3bbdb1c6670a127ba3baddf2f04d3e34fd3;p=lilypond.git diff --git a/lily/piano-pedal-bracket.cc b/lily/piano-pedal-bracket.cc index 4c8efd4d0f..534d5812ec 100644 --- a/lily/piano-pedal-bracket.cc +++ b/lily/piano-pedal-bracket.cc @@ -51,8 +51,7 @@ Piano_pedal_bracket::print (SCM smob) common = common->common_refpoint (textbit, X_AXIS); Interval span_points (0, 0); - Direction d = LEFT; - do + for (LEFT_and_RIGHT (d)) { Item *b = me->get_bound (d); broken[d] = b->break_status_dir () != CENTER; @@ -71,7 +70,6 @@ Piano_pedal_bracket::print (SCM smob) else span_points[d] = b->relative_coordinate (common, X_AXIS); } - while (flip (&d) != LEFT); /* For 'Mixed' style pedals, i.e. a bracket preceded by text: Ped._____| need to shorten by the extent of the text grob