From e63923b0334ae381e0fcc576a6b6e08a62e657cf Mon Sep 17 00:00:00 2001 From: László Németh Date: Thu, 30 Jan 2014 14:56:30 +0100 Subject: fdo#44314 non-standard hyphenation at soft hyphens + with pers. dic. Change-Id: I25e7c13036c6ce1948cc33d45901ef69a258fb03 --- linguistic/source/misc.cxx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'linguistic/source/misc.cxx') 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 &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; -- cgit v1.2.3