From b4437b8b4c16fd9458eadc3dcc271bb9db59959f Mon Sep 17 00:00:00 2001 From: Joe Neeman Date: Fri, 19 Jan 2007 08:47:28 +0200 Subject: [PATCH] Fix ragged right overcrowding on last line. Bug #249 --- lily/constrained-breaking.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; -- 2.39.2