]> git.donarmstrong.com Git - lilypond.git/commitdiff
Fix regressions in page breaking.
authorJoe Neeman <joeneeman@gmail.com>
Thu, 26 Aug 2010 22:00:11 +0000 (15:00 -0700)
committerJoe Neeman <joeneeman@gmail.com>
Sat, 28 Aug 2010 00:11:07 +0000 (17:11 -0700)
Store the system-count-status properly for the new, optimized
code path.

lily/page-spacing.cc

index e4b4eec9ef748d039ae49c6b521553fd25c97591..00ffcc44585ddd78bb722a319498f0f6da782664 100644 (file)
@@ -111,6 +111,10 @@ Page_spacer::solve ()
     }
 
   Page_spacing_result ret;
+  ret.penalty_ = simple_state_.back ().penalty_
+    + lines_.back ().page_penalty_ + lines_.back ().turn_penalty_;
+  ret.system_count_status_ = simple_state_.back ().system_count_status_;
+
   vsize system = lines_.size () - 1;
   while (system != VPOS)
     {
@@ -176,6 +180,7 @@ Page_spacer::solve (vsize page_count)
 
   ret.force_.resize (page_count);
   ret.systems_per_page_.resize (page_count);
+  ret.system_count_status_ = state_.at (system, page_count-1).system_count_status_;
   ret.penalty_ = state_.at (system, page_count-1).penalty_
     + lines_.back ().page_penalty_ + lines_.back ().turn_penalty_;