diff options
-rw-r--r-- | dw/textblock_linebreaking.cc | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/dw/textblock_linebreaking.cc b/dw/textblock_linebreaking.cc index d8f5840b..df29c459 100644 --- a/dw/textblock_linebreaking.cc +++ b/dw/textblock_linebreaking.cc @@ -718,6 +718,7 @@ bool Textblock::isHyphenationCandidate (Word *word) { return (word->flags & Word::CAN_BE_HYPHENATED) && word->style->x_lang[0] && + isBreakAllowed(word) && word->content.type == core::Content::TEXT && Hyphenator::isHyphenationCandidate (word->content.text); } |