source file of the GNU LilyPond music typesetter
- (c) 2006 Joe Neeman <joeneeman@gmail.com>
+ (c) 2006--2007 Joe Neeman <joeneeman@gmail.com>
*/
#include "page-breaking.hh"
assert (0);
}
- for (vsize i = 0; i < chunks.size () - 1; i++)
+ for (vsize i = 0; i + 1 < chunks.size (); i++)
{
vsize sys = next_system (chunks[i]);
if (all_[sys].pscore_)
vector<Line_details> ret;
assert (chunks.size () == div.size () + 1);
- for (vsize i = 0; i < chunks.size () - 1; i++)
+ for (vsize i = 0; i + 1 < chunks.size (); i++)
{
vsize sys = next_system (chunks[i]);
if (all_[sys].pscore_)
{
if (all_[i].pscore_)
{
- vector<Grob*> cols = all_[i].pscore_->root_system ()->columns ();
+ vector<Grob*> cols = all_[i].pscore_->root_system ()->used_columns ();
vector<vsize> line_breaker_columns;
line_breaker_columns.push_back (0);
Line_division ret;
ret.resize (chunks.size () - 1, 1);
- for (vsize i = 0; i < chunks.size () - 1; i++)
+ for (vsize i = 0; i + 1 < chunks.size (); i++)
{
vsize sys = next_system (chunks[i]);
if (all_[sys].pscore_)