Permalink
Browse files

This fixes #47, centering, and I’m going to bed.

  • Loading branch information...
simoncozens committed Feb 10, 2015
1 parent 719befe commit b966a0634d295fe3bc4484744ab4deb8594f701a
Showing with 1 addition and 1 deletion.
  1. +1 −1 core/break.lua
View
@@ -237,7 +237,7 @@ function lineBreak:recordFeasible(pi, breakType) -- 881
end
SU.debug("break"," fit class = "..self.fitClass);
d = d + self.r.totalDemerits
- if d < self.minimalDemerits[self.fitClass] then
+ if d <= self.minimalDemerits[self.fitClass] then
self.minimalDemerits[self.fitClass] = d
self.best_place[self.fitClass] = self.r.breakNode
self.best_pl_line[self.fitClass] = self.r.lineNumber

0 comments on commit b966a06

Please sign in to comment.