LilyPond is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
LilyPond is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
// Solves the subproblem betwen the (END-1)th \pageBreak and the
// ENDth \pageBreak.
// Returns a vector of systems per page for the pages within this chunk.
// Solves the subproblem betwen the (END-1)th \pageBreak and the
// ENDth \pageBreak.
// Returns a vector of systems per page for the pages within this chunk.
Page_spacing_result best_for_this_sys_count;
set_current_breakpoints (end-1, end, sys_count, Line_division (), bound);
Page_spacing_result best_for_this_sys_count;
set_current_breakpoints (end-1, end, sys_count, Line_division (), bound);
for (vsize i = 0; i < current_configuration_count (); i++)
{
vsize min_p_count = min_page_count (i, first_page_num);
for (vsize i = 0; i < current_configuration_count (); i++)
{
vsize min_p_count = min_page_count (i, first_page_num);
if (min_p_count == page_count || scm_is_integer (forced_page_count))
cur = space_systems_on_n_pages (i, page_count, first_page_num);
else
if (min_p_count == page_count || scm_is_integer (forced_page_count))
cur = space_systems_on_n_pages (i, page_count, first_page_num);
else
- cur = space_systems_on_n_or_one_more_pages (i, page_count-1, first_page_num);
+ cur = space_systems_on_n_or_one_more_pages (i, page_count-1, first_page_num, 0);
Real best_demerits_for_this_sys_count = infinity_f;
set_current_breakpoints (end-1, end, sys_count, bound);
Real best_demerits_for_this_sys_count = infinity_f;
set_current_breakpoints (end-1, end, sys_count, bound);
for (vsize i = 0; i < current_configuration_count (); i++)
{
vsize min_p_count = min_page_count (i, first_page_num);
for (vsize i = 0; i < current_configuration_count (); i++)
{
vsize min_p_count = min_page_count (i, first_page_num);
if (best_demerits_for_this_sys_count >= BAD_SPACING_PENALTY
&& !(best.system_count_status_ & SYSTEM_COUNT_TOO_FEW))
break;
if (best_demerits_for_this_sys_count >= BAD_SPACING_PENALTY
&& !(best.system_count_status_ & SYSTEM_COUNT_TOO_FEW))
break;