sw/source/core/text/inftxt.cxx | 7 +++++++ 1 file changed, 7 insertions(+)
New commits: commit c7c5f24f12c241cb72810abe596337e809138df0 Author: Samuel Mehrbrodt <samuel.mehrbr...@cib.de> AuthorDate: Thu Oct 17 10:06:36 2019 +0200 Commit: Samuel Mehrbrodt <samuel.mehrbr...@cib.de> CommitDate: Thu Oct 17 11:07:56 2019 +0200 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.mehrbr...@cib.de> 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) ); } _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits