summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJun Nogata <nogajun@gmail.com>2021-08-15 15:17:53 +0900
committerThorsten Behrens <thorsten.behrens@allotropia.de>2021-12-06 17:13:24 +0100
commit53d5555f13371252874ec962dee4643168d26780 (patch)
tree61da0524b75dc785a72549040d9b9616e050bfff
parenta large but clipped image may still be cached from a previous call (diff)
downloadcore-53d5555f13371252874ec962dee4643168d26780.tar.gz
core-53d5555f13371252874ec962dee4643168d26780.zip
tdf#143422 Hide "Hyphenation data not found" in Japanese
When I open a document with mixed English and Japanese, I get a warning "Missing hyphenation data Please install the hyphenation package for locale "ja"". English needs hyphenation, but Japanese does not need hyphenation. However, the hyphenation check only checks for unknown language or no language. Change-Id: I559e1b1eec8089f50aadad2710a33d0268ab13f2 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/120497 Tested-by: Jenkins Reviewed-by: Thorsten Behrens <thorsten.behrens@allotropia.de>
-rw-r--r--sw/source/core/text/inftxt.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/sw/source/core/text/inftxt.cxx b/sw/source/core/text/inftxt.cxx
index d85df6397551..14eb8b13c11d 100644
--- a/sw/source/core/text/inftxt.cxx
+++ b/sw/source/core/text/inftxt.cxx
@@ -1445,7 +1445,8 @@ bool SwTextFormatInfo::IsHyphenate() const
return false;
LanguageType eTmp = GetFont()->GetLanguage();
- if( LANGUAGE_DONTKNOW == eTmp || LANGUAGE_NONE == eTmp )
+ // TODO: check for more ideographic langs w/o hyphenation as a concept
+ if ( LANGUAGE_DONTKNOW == eTmp || LANGUAGE_NONE == eTmp || LANGUAGE_JAPANESE == eTmp )
return false;
uno::Reference< XHyphenator > xHyph = ::GetHyphenator();