From: Joe Neeman Date: Fri, 19 Jan 2007 06:47:28 +0000 (+0200) Subject: Fix ragged right overcrowding on last line. Bug #249 X-Git-Tag: release/2.11.15-1~9^2~12 X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=b4437b8b4c16fd9458eadc3dcc271bb9db59959f;p=lilypond.git Fix ragged right overcrowding on last line. Bug #249 --- diff --git a/lily/constrained-breaking.cc b/lily/constrained-breaking.cc index 931e4c4cec..9eaa3d6c6e 100644 --- a/lily/constrained-breaking.cc +++ b/lily/constrained-breaking.cc @@ -180,7 +180,7 @@ Constrained_breaking::solve (vsize start, vsize end, vsize sys_count) } } /* if we get to here, just put everything on one line */ - warning (_ ("cannot find line breaking that satisfies constraints" )); + warning (_ ("cannot find line breaking that satisfies constraints")); ret.push_back (space_line (0, end_brk)); return ret; } @@ -342,7 +342,7 @@ Constrained_breaking::initialize () line.force_ = forces[i*breaks_.size () + j]; if (ragged && last && !isinf (line.force_)) - line.force_ = 0; + line.force_ = (line.force_ < 0) ? infinity_f : 0; if (isinf (line.force_)) break;