tdf#164005: also initialize locales in hyphenate()
... which is also used in queryAlternativeSpelling Change-Id: I7f0bbbc6e598d56156efe1446f422f9674ed6f25 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/177187 Tested-by: Jenkins Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
This commit is contained in:
parent
b3dd1e92af
commit
7eaf28b0a2
1 changed files with 1 additions and 1 deletions
|
@ -273,6 +273,7 @@ Reference< XHyphenatedWord > SAL_CALL Hyphenator::hyphenate( const OUString& aWo
|
|||
|
||||
Reference< XHyphenatedWord > xRes;
|
||||
|
||||
ensureLocales();
|
||||
int k = -1;
|
||||
for (size_t j = 0; j < mvDicts.size(); ++j)
|
||||
{
|
||||
|
@ -660,7 +661,6 @@ Reference < XHyphenatedWord > SAL_CALL Hyphenator::queryAlternativeSpelling(
|
|||
sal_Int16 nIndex,
|
||||
const css::uno::Sequence< css::beans::PropertyValue >& aProperties )
|
||||
{
|
||||
ensureLocales();
|
||||
// Firstly we allow only one plus character before the hyphen to avoid to miss the right break point:
|
||||
for (int extrachar = 1; extrachar <= 2; extrachar++)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue