X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=lily%2Fminimal-page-breaking.cc;h=4588dddc3a8a34f6a301c095fc6b4d14677b31c8;hb=01b12c6901aaaa367cd8d8408d9a4aa5ccff9ddc;hp=0826e181901069adcbcfbd24b72fea4149e452a2;hpb=222b0bff12be16c385df77f4cfa89101aafeece7;p=lilypond.git diff --git a/lily/minimal-page-breaking.cc b/lily/minimal-page-breaking.cc index 0826e18190..4588dddc3a 100644 --- a/lily/minimal-page-breaking.cc +++ b/lily/minimal-page-breaking.cc @@ -5,7 +5,7 @@ source file of the GNU LilyPond music typesetter - (c) 2007 Nicolas Sceaux + (c) 2007--2009 Nicolas Sceaux */ #include "international.hh" @@ -15,9 +15,8 @@ #include "paper-book.hh" static bool -is_break (Grob *g) +is_break (Grob *) { - (void) g; /* shutup warning */ return false; } @@ -35,12 +34,12 @@ Minimal_page_breaking::solve () { vsize end = last_break_position (); - message ("Computing line breaks..."); + message (_ ("Calculating line breaks...")); set_to_ideal_line_configuration (0, end); break_into_pieces (0, end, current_configuration (0)); - message (_ ("Computing page breaks...")); - vsize first_page_num = robust_scm2int (book_->paper_->c_variable ("part-first-page-number"), 1); + message (_ ("Calculating page breaks...")); + vsize first_page_num = robust_scm2int (book_->paper_->c_variable ("first-page-number"), 1); Page_spacing_result res = pack_systems_on_least_pages (0, first_page_num); SCM lines = systems (); return make_pages (res.systems_per_page_, lines);