From: Joe Neeman Date: Tue, 6 Feb 2007 15:57:12 +0000 (+0200) Subject: Don't assign infinite demerits to a line if it is between 2 adjacent X-Git-Tag: release/2.11.17-1~7^2~5 X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=6fa65d64fec139c40804814122e775edb25dc3db;p=lilypond.git Don't assign infinite demerits to a line if it is between 2 adjacent breakpoints. Fixes #277 --- diff --git a/lily/constrained-breaking.cc b/lily/constrained-breaking.cc index d8235760ac..4604f5439d 100644 --- a/lily/constrained-breaking.cc +++ b/lily/constrained-breaking.cc @@ -353,7 +353,7 @@ Constrained_breaking::initialize () line.force_ = forces[i*breaks_.size () + j]; if (ragged && last && !isinf (line.force_)) - line.force_ = (line.force_ < 0) ? infinity_f : 0; + line.force_ = (line.force_ < 0 && j > i + 1) ? infinity_f : 0; if (isinf (line.force_)) break;