]> git.donarmstrong.com Git - lilypond.git/commitdiff
Fix ragged right overcrowding on last line. Bug #249
authorJoe Neeman <joeneeman@gmail.com>
Fri, 19 Jan 2007 06:47:28 +0000 (08:47 +0200)
committerJoe Neeman <joeneeman@gmail.com>
Fri, 19 Jan 2007 06:47:28 +0000 (08:47 +0200)
lily/constrained-breaking.cc

index 931e4c4ceced84a8c9479976ead96cdebfa52a82..9eaa3d6c6e39868f1952ee223884a45a6282f640 100644 (file)
@@ -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;