]> git.donarmstrong.com Git - lilypond.git/blobdiff - lily/page-breaking.cc
*** empty log message ***
[lilypond.git] / lily / page-breaking.cc
index fee3fa26d914ebd52cad0654302619b160108996..b1fd686e2b05aafff4c074dab0ef6516eb3cd5ed 100644 (file)
@@ -224,7 +224,7 @@ void
 Page_breaking::create_system_list ()
 {
   SCM specs = book_->get_system_specs ();
-  for (SCM s = specs; scm_is_pair (s); s = scm_cdr (s))
+  for (SCM s = specs; s != SCM_EOL; s = scm_cdr (s))
     {
       if (Paper_score *ps = dynamic_cast<Paper_score*> (unsmob_music_output (scm_car (s))))
        {
@@ -264,7 +264,7 @@ Page_breaking::find_chunks_and_breaks (Break_predicate is_break)
          vector<vsize> line_breaker_columns;
          line_breaker_columns.push_back (0);
 
-         for (vsize j = 1; j < cols.size (); j++)
+         for (vsize j = 0; j < cols.size (); j++)
            {
              bool last = j == cols.size () - 1;
              bool break_point = is_break (cols[j]);