/*
This file is part of LilyPond, the GNU music typesetter.
- Copyright (C) 1999--2011 Han-Wen Nienhuys <hanwen@xs4all.nl>
+ Copyright (C) 1999--2012 Han-Wen Nienhuys <hanwen@xs4all.nl>
LilyPond is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
Real left_stickout = skys ? (*skys)[RIGHT].max_height () : 0.0;
bool done = true;
- Direction d = LEFT;
- do
+ for (LEFT_and_RIGHT (d))
{
if (j < i - 1)
cur_dist[d] += distances[j];
cur_dist[d] = max (cur_dist[d], dist);
done = done && !touches;
+
+ if (!rb)
+ break;
}
- while (flip (&d) != LEFT && rb);
/* we need the empty check for gregorian notation, where there are a lot of
extraneous paper-columns that we need to skip over */