X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=lily%2Fottava-engraver.cc;h=bd39702bdb59da5c14ef516551455c8f9ce57673;hb=079ab0329358f7c42802d065cc16f84ca9cfd2b3;hp=fb72fdf80f4697568ed20e05f6da02101016c5ed;hpb=f93e4199873c91ae32f0e84a610d14853dc379df;p=lilypond.git diff --git a/lily/ottava-engraver.cc b/lily/ottava-engraver.cc index fb72fdf80f..bd39702bdb 100644 --- a/lily/ottava-engraver.cc +++ b/lily/ottava-engraver.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--2012 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 @@ -99,8 +99,7 @@ Ottava_spanner_engraver::typeset_all () { if (finished_) { - Direction d = LEFT; - do + for (LEFT_and_RIGHT (d)) { if (!finished_->get_bound (RIGHT)) { @@ -108,7 +107,6 @@ Ottava_spanner_engraver::typeset_all () finished_->set_bound (d, e); } } - while (flip (&d) != LEFT); finished_ = 0; }