X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=lily%2Ftie-column.cc;h=bc14eb9bdf7ea04ffd8b38832bf5e02076bedb7c;hb=34a302a3f5717a4238ef294e67448b05088fba88;hp=c73694d334e2f581f66727a1cfd012a26dac5033;hpb=f93e4199873c91ae32f0e84a610d14853dc379df;p=lilypond.git diff --git a/lily/tie-column.cc b/lily/tie-column.cc index c73694d334..bc14eb9bdf 100644 --- a/lily/tie-column.cc +++ b/lily/tie-column.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 @@ -67,14 +67,12 @@ Tie_column::before_line_breaking (SCM smob) for (SCM s = me->get_property ("ties"); scm_is_pair (s); s = scm_cdr (s)) { Spanner *tie = dynamic_cast (unsmob_grob (scm_car (s))); - Direction dir = LEFT; - do + for (LEFT_and_RIGHT (dir)) { if (dir * tie->get_bound (dir)->get_column ()->get_rank () > dir * me->get_bound (dir)->get_column ()->get_rank ()) me->set_bound (dir, Tie::head (tie, dir)); } - while (flip (&dir) != LEFT); } return SCM_UNSPECIFIED; @@ -122,5 +120,6 @@ ADD_INTERFACE (Tie_column, /* properties */ "positioning-done " "tie-configuration " + "ties " );