summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSamuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>2019-10-17 10:06:36 +0200
committerSamuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>2019-10-17 11:07:56 +0200
commitc7c5f24f12c241cb72810abe596337e809138df0 (patch)
tree2e74f18b7228049fd0b77a81b8266653c45933d0
parent01d28b0b85f99590c0581e4bbf636bc9281e0571 (diff)
tdf#121657 Show warning when no hyphenation info available for current lang
Change-Id: I96114470d6151392e42e6938d92d4175022dbbe2 Reviewed-on: https://gerrit.libreoffice.org/80931 Tested-by: Jenkins Reviewed-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>
-rw-r--r--sw/source/core/text/inftxt.cxx7
1 files changed, 7 insertions, 0 deletions
diff --git a/sw/source/core/text/inftxt.cxx b/sw/source/core/text/inftxt.cxx
index 6556bb2757af..2b9f7dac8d74 100644
--- a/sw/source/core/text/inftxt.cxx
+++ b/sw/source/core/text/inftxt.cxx
@@ -1452,6 +1452,13 @@ bool SwTextFormatInfo::IsHyphenate() const
if (m_bInterHyph)
SvxSpellWrapper::CheckHyphLang( xHyph, eTmp );
+ if (!xHyph->hasLocale(g_pBreakIt->GetLocale(eTmp)))
+ {
+ // TODO: Add an infobar for this case, tdf#128191
+ SAL_WARN("sw", "missing hyphenation package for locale: "
+ << g_pBreakIt->GetLocale(eTmp).Language);
+ }
+
return xHyph->hasLocale( g_pBreakIt->GetLocale(eTmp) );
}