summaryrefslogtreecommitdiff
path: root/linguistic/source/misc.cxx
diff options
context:
space:
mode:
authorLászló Németh <nemeth@numbertext.org>2014-01-30 14:56:30 +0100
committerLászló Németh <nemeth@numbertext.org>2014-01-30 14:56:30 +0100
commite63923b0334ae381e0fcc576a6b6e08a62e657cf (patch)
treefd281a8df85ef40df228fcf8ef75bdb4067400e3 /linguistic/source/misc.cxx
parenta1aa702861694fb114403b3f2746a33eb315ed87 (diff)
fdo#44314 non-standard hyphenation at soft hyphens + with pers. dic.
Change-Id: I25e7c13036c6ce1948cc33d45901ef69a258fb03
Diffstat (limited to 'linguistic/source/misc.cxx')
-rw-r--r--linguistic/source/misc.cxx4
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;