aboutsummaryrefslogtreecommitdiff
path: root/dw/textblock_linebreaking.cc
diff options
context:
space:
mode:
authorSebastian Geerken <devnull@localhost>2012-11-15 21:27:45 +0100
committerSebastian Geerken <devnull@localhost>2012-11-15 21:27:45 +0100
commitc8191ef0e9a949b990e6f4d155dcddae79cff46c (patch)
treea4388eb2f1d6a872e5d2fcaa3d7abf3666ef1798 /dw/textblock_linebreaking.cc
parenta940db1461814764bdcebf0a22a729a8a193b7f8 (diff)
Simple bug fix.
Diffstat (limited to 'dw/textblock_linebreaking.cc')
-rw-r--r--dw/textblock_linebreaking.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/dw/textblock_linebreaking.cc b/dw/textblock_linebreaking.cc
index e2130b00..47027194 100644
--- a/dw/textblock_linebreaking.cc
+++ b/dw/textblock_linebreaking.cc
@@ -107,7 +107,7 @@ void Textblock::BadnessAndPenalty::setPenalties (int penalty1, int penalty2)
{
// TODO Check here some cases, e.g. both or no penalty INT_MIN.
setSinglePenalty(0, penalty1);
- setSinglePenalty(1, penalty1);
+ setSinglePenalty(1, penalty2);
}
void Textblock::BadnessAndPenalty::setSinglePenalty (int index, int penalty)