From: Joe Neeman Date: Thu, 17 Apr 2008 08:14:46 +0000 (+1000) Subject: Add a feature request form Graham. X-Git-Tag: release/2.11.45-1~12^2~4 X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=5f38c5d215e50234c2d58f240975f1db9ca27462;hp=bc57e0465d1d518f23c6f8028a6710efa3a86fef;p=lilypond.git Add a feature request form Graham. If there is only one system and ragged-right hasn't explicitly been disabled and that line is stretched, space that line without stretching it. --- diff --git a/lily/constrained-breaking.cc b/lily/constrained-breaking.cc index 1efae87e12..9a1d261159 100644 --- a/lily/constrained-breaking.cc +++ b/lily/constrained-breaking.cc @@ -123,6 +123,15 @@ Constrained_breaking::space_line (vsize i, vsize j) bool last = j == breaks_.size () - 1; bool ragged = ragged_right || (last && ragged_last); + /* As a special case, if there is only one line in the score and ragged-right + hasn't been specifically forbidden and the line is stretched, use + ragged spacing. */ + if (last && i == 0 + && lines_.at (i, j).force_ >= 0 + && !scm_is_bool (pscore_->layout ()->c_variable ("ragged-right")) + && !scm_is_bool (pscore_->layout ()->c_variable ("ragged-last"))) + ragged = true; + return get_line_configuration (line, line_dims[RIGHT] - line_dims[LEFT], line_dims[LEFT], ragged); }