]> git.donarmstrong.com Git - lilypond.git/commitdiff
Fix 1460.
authorJoe Neeman <joeneeman@gmail.com>
Mon, 20 Dec 2010 10:20:16 +0000 (02:20 -0800)
committerJoe Neeman <joeneeman@gmail.com>
Mon, 20 Dec 2010 10:20:16 +0000 (02:20 -0800)
Make sure to use space_systems_with_fixed_number_per_page
at all appropriate places.

lily/optimal-page-breaking.cc
lily/page-breaking.cc

index e9010aec09345ef715d247a20a0a854d34bc5956..65663798b3ae2b3de61bb04c143f85853da39bc7 100644 (file)
@@ -59,10 +59,7 @@ Optimal_page_breaking::solve ()
       /* find out the ideal number of pages */
       message (_ ("Finding the ideal number of pages..."));
   
-      if (systems_per_page () > 0)
-       best = space_systems_with_fixed_number_per_page (0, first_page_num);
-      else
-       best = space_systems_on_best_pages (0, first_page_num);
+      best = space_systems_on_best_pages (0, first_page_num);
 
       page_count = best.systems_per_page_.size ();
       ideal_sys_count = best.system_count ();
index bc9016ff6aef0bebdaed23bd0363f06a25777f74..3272e02eefbb3471efab3be5e04a8ed28a11683f 100644 (file)
@@ -1137,6 +1137,9 @@ Page_breaking::space_systems_on_n_or_one_more_pages (vsize configuration, vsize
 Page_spacing_result
 Page_breaking::space_systems_on_best_pages (vsize configuration, vsize first_page_num)
 {
+  if (systems_per_page_ > 0)
+    return space_systems_with_fixed_number_per_page (configuration, first_page_num);
+
   cache_line_details (configuration);
   Page_spacer ps (cached_line_details_, first_page_num, this);