diff options
author | Johannes Hofmann <Johannes.Hofmann@gmx.de> | 2012-12-09 13:13:14 +0100 |
---|---|---|
committer | Johannes Hofmann <Johannes.Hofmann@gmx.de> | 2012-12-09 13:13:14 +0100 |
commit | 5df24b640c4f1471eb6d7a38160e9d9330fbdc67 (patch) | |
tree | 2605c8f6206822531f8fb1c9ea08e89814f81823 /dw/textblock_linebreaking.cc | |
parent | 7a47cd331d30a780e7437b77aeb994c8ed2061b8 (diff) |
share hyphenators between windows/tabs
Diffstat (limited to 'dw/textblock_linebreaking.cc')
-rw-r--r-- | dw/textblock_linebreaking.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/dw/textblock_linebreaking.cc b/dw/textblock_linebreaking.cc index 4900a9a2..28c2999b 100644 --- a/dw/textblock_linebreaking.cc +++ b/dw/textblock_linebreaking.cc @@ -736,13 +736,13 @@ int Textblock::hyphenateWord (int wordIndex) Word *hyphenatedWord = words->getRef(wordIndex); char lang[3] = { hyphenatedWord->style->x_lang[0], hyphenatedWord->style->x_lang[1], 0 }; - Hyphenator *hyphenator = - Hyphenator::getHyphenator (layout->getPlatform (), lang); + Hyphenator *hyphenator = Hyphenator::getHyphenator (lang); PRINTF ("[%p] considering to hyphenate word %d, '%s', in language '%s'\n", this, wordIndex, words->getRef(wordIndex)->content.text, lang); int numBreaks; int *breakPos = - hyphenator->hyphenateWord (hyphenatedWord->content.text, &numBreaks); + hyphenator->hyphenateWord (layout->getPlatform (), + hyphenatedWord->content.text, &numBreaks); if (numBreaks > 0) { Word origWord = *hyphenatedWord; |