diff options
Diffstat (limited to 'linguistic/source/misc.cxx')
-rw-r--r-- | linguistic/source/misc.cxx | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/linguistic/source/misc.cxx b/linguistic/source/misc.cxx index 6ed0510d241c..737f4ae2ba33 100644 --- a/linguistic/source/misc.cxx +++ b/linguistic/source/misc.cxx @@ -262,9 +262,11 @@ static sal_Bool lcl_HasHyphInfo( const uno::Reference<XDictionaryEntry> &xEntry sal_Bool bRes = sal_False; if (xEntry.is()) { - // there has to be (at least one) '=' denoting a hyphenation position + // there has to be (at least one) '=' or '[' denoting a hyphenation position // and it must not be before any character of the word sal_Int32 nIdx = xEntry->getDictionaryWord().indexOf( '=' ); + if (nIdx == -1) + nIdx = xEntry->getDictionaryWord().indexOf( '[' ); bRes = nIdx != -1 && nIdx != 0; } return bRes; |