lingucomponent/source/hyphenator/hyphen/hyphenimp.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
New commits: commit 7eaf28b0a210a9ad7b22372a2a850a8c514d7593 Author: Mike Kaganski <mike.kagan...@collabora.com> AuthorDate: Sat Nov 23 15:42:02 2024 +0500 Commit: Mike Kaganski <mike.kagan...@collabora.com> CommitDate: Sun Nov 24 11:28:23 2024 +0100 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.kagan...@collabora.com> diff --git a/lingucomponent/source/hyphenator/hyphen/hyphenimp.cxx b/lingucomponent/source/hyphenator/hyphen/hyphenimp.cxx index 46071a987f5c..5ec43190a731 100644 --- a/lingucomponent/source/hyphenator/hyphen/hyphenimp.cxx +++ b/lingucomponent/source/hyphenator/hyphen/hyphenimp.cxx @@ -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++) {