]> git.donarmstrong.com Git - lilypond.git/commitdiff
Don't assign infinite demerits to a line if it is between 2 adjacent
authorJoe Neeman <joeneeman@gmail.com>
Tue, 6 Feb 2007 15:57:12 +0000 (17:57 +0200)
committerJoe Neeman <joeneeman@gmail.com>
Tue, 6 Feb 2007 15:57:12 +0000 (17:57 +0200)
breakpoints. Fixes #277

lily/constrained-breaking.cc

index d8235760ac08978fb469e6805d22bc31ea1b91a2..4604f5439d0173ae9c048f448ee341a77644190f 100644 (file)
@@ -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;