diff options
author | Sebastian Geerken <devnull@localhost> | 2012-11-09 21:00:10 +0100 |
---|---|---|
committer | Sebastian Geerken <devnull@localhost> | 2012-11-09 21:00:10 +0100 |
commit | ba12d00e4304138098beec462bd9c7ab5063b0bd (patch) | |
tree | bfe3c1fbefc8fbb3822882da1302c42c0a266b30 /dw/textblock_linebreaking.cc | |
parent | 5e000618f0774aa24605ab984c46411e745a1574 (diff) |
Generalization of soft hyphens, for "hard" hyphens, em-dashes and similar characters. Works now for soft hyphens.
Diffstat (limited to 'dw/textblock_linebreaking.cc')
-rw-r--r-- | dw/textblock_linebreaking.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/dw/textblock_linebreaking.cc b/dw/textblock_linebreaking.cc index ebe3d534..d111a5b5 100644 --- a/dw/textblock_linebreaking.cc +++ b/dw/textblock_linebreaking.cc @@ -699,7 +699,7 @@ int Textblock::hyphenateWord (int wordIndex) // Note: there are numBreaks + 1 word parts. if (i < numBreaks) { // TODO There should be a method fillHyphen. - w->badnessAndPenalty.setPenalty (penaltyHyphen); + w->badnessAndPenalty.setPenalty (penalties[PENALTY_HYPHEN]); w->hyphenWidth = layout->textWidth (origWord.style->font, "\xc2\xad", 2); PRINTF (" [%d] + hyphen\n", wordIndex + i); |