X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=lily%2Fbreak-substitution.cc;h=75053c34fd00ebe243eb32d23ece6b987b201c17;hb=058370efc7e9710f149d0f444328bb1fcd7bdec1;hp=74314b39c03f71961b00fecddb41759ad6386667;hpb=f93e4199873c91ae32f0e84a610d14853dc379df;p=lilypond.git diff --git a/lily/break-substitution.cc b/lily/break-substitution.cc index 74314b39c0..75053c34fd 100644 --- a/lily/break-substitution.cc +++ b/lily/break-substitution.cc @@ -1,7 +1,7 @@ /* This file is part of LilyPond, the GNU music typesetter. - Copyright (C) 2001--2011 Han-Wen Nienhuys + Copyright (C) 2001--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 @@ -248,14 +248,12 @@ item_system_range (Item *it) return Slice (st->get_rank (), st->get_rank ()); Slice sr; - Direction d = LEFT; - do + for (LEFT_and_RIGHT (d)) { Item *bi = it->find_prebroken_piece (d); if (bi && bi->get_system ()) sr.add_point (bi->get_system ()->get_rank ()); } - while (flip (&d) != LEFT); return sr; }