lingucomponent/source/hyphenator/hyphen/hyphenimp.cxx |    5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)

New commits:
commit c568149596fe58adcba00641368f5da7c64b3590
Author:     Mike Kaganski <[email protected]>
AuthorDate: Sun Nov 24 20:13:02 2024 +0500
Commit:     Mike Kaganski <[email protected]>
CommitDate: Sun Nov 24 17:19:14 2024 +0100

    No need to create PossibleHyphens for no-hyphenation case
    
    Change-Id: Idd509e40f96373fc29d0f313bcb5c14ee8490f17
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/177212
    Tested-by: Jenkins
    Reviewed-by: Mike Kaganski <[email protected]>

diff --git a/lingucomponent/source/hyphenator/hyphen/hyphenimp.cxx 
b/lingucomponent/source/hyphenator/hyphen/hyphenimp.cxx
index 66d22f0b61a9..74761d739c54 100644
--- a/lingucomponent/source/hyphenator/hyphen/hyphenimp.cxx
+++ b/lingucomponent/source/hyphenator/hyphen/hyphenimp.cxx
@@ -704,10 +704,7 @@ Reference< XPossibleHyphens > SAL_CALL 
Hyphenator::createPossibleHyphens( const
     // Resolves: fdo#41083 honour MinWordLength in "createPossibleHyphens" as
     // well as "hyphenate"
     if (aWord.getLength() < minLen)
-    {
-        return PossibleHyphens::CreatePossibleHyphens( aWord, 
LinguLocaleToLanguage( aLocale ),
-                      aWord, Sequence< sal_Int16 >() );
-    }
+        return nullptr;
 
     // if we have a hyphenation dictionary matching this locale
     if (auto pHDInfo = getMatchingDict(aLocale))

Reply via email to