From 91a7d8ea51745072e2bd1a2407c17e58c45f74c6 Mon Sep 17 00:00:00 2001 From: Joe Neeman Date: Sun, 16 Aug 2009 11:43:35 +1000 Subject: [PATCH] Fix system-count. --- input/regression/page-spacing-system-count.ly | 2 +- lily/page-breaking.cc | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/input/regression/page-spacing-system-count.ly b/input/regression/page-spacing-system-count.ly index 3758bd4cf1..f3f5e382d5 100644 --- a/input/regression/page-spacing-system-count.ly +++ b/input/regression/page-spacing-system-count.ly @@ -1,7 +1,7 @@ \version "2.13.4" \header { - texidoc = "Page layout and stretching work with system-cound enabled." + texidoc = "Page layout and stretching work with system-count enabled." } #(set-default-paper-size "a6") diff --git a/lily/page-breaking.cc b/lily/page-breaking.cc index 1b61f38258..038b0af247 100644 --- a/lily/page-breaking.cc +++ b/lily/page-breaking.cc @@ -524,13 +524,14 @@ Page_breaking::find_chunks_and_breaks (Break_predicate is_break) Constrained_breaking breaking (system_specs_[i].pscore_); vector details = breaking.line_details (0, VPOS, scm_to_int (system_count)); + cols.push_back (system_specs_[i].pscore_->root_system ()->used_columns ()[0]); for (vsize j = 0; j < details.size (); j++) cols.push_back (details[j].last_column_); } else cols = system_specs_[i].pscore_->root_system ()->used_columns (); - int last_chunk_idx = -1; + int last_chunk_idx = 0; vector line_breaker_columns; line_breaker_columns.push_back (0); -- 2.39.5