X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;ds=sidebyside;f=lily%2Fbreak-substitution.cc;h=a0f03f753cc5b9d873223b9bb61537b3383dd513;hb=19a2f36b35f60041153e6db00cab0b0bd00dad5e;hp=74314b39c03f71961b00fecddb41759ad6386667;hpb=4a401ca1c60f428daa242dbdd102fdb3f327ebfb;p=lilypond.git diff --git a/lily/break-substitution.cc b/lily/break-substitution.cc index 74314b39c0..a0f03f753c 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--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 @@ -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; }