[Libreoffice-commits] core.git: Branch 'libreoffice-6-2' - sw/source
Julien Nabet (via logerrit)
logerrit at kemper.freedesktop.org
Thu May 30 07:21:42 UTC 2019
sw/source/filter/ww8/ww8par.cxx | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
New commits:
commit baf574312c68df5674d78066f7bb468481caad40
Author: Julien Nabet <serval2412 at yahoo.fr>
AuthorDate: Tue May 28 10:50:27 2019 +0200
Commit: Miklos Vajna <vmiklos at collabora.com>
CommitDate: Thu May 30 09:20:47 2019 +0200
tdf#56738: fix encoding in comments in doc files (>= Word 97)
See https://bugs.documentfoundation.org/show_bug.cgi?id=56738#c3
Change-Id: I8dbab3fe76b2c2d83cbb07509fabe9f784664c03
Reviewed-on: https://gerrit.libreoffice.org/73088
(cherry picked from commit fd01ddd3094dd080a455665342316c79dbee8390)
Reviewed-on: https://gerrit.libreoffice.org/73157
Tested-by: Jenkins
Reviewed-by: Miklos Vajna <vmiklos at collabora.com>
diff --git a/sw/source/filter/ww8/ww8par.cxx b/sw/source/filter/ww8/ww8par.cxx
index 70a3e9b44977..00c57b690977 100644
--- a/sw/source/filter/ww8/ww8par.cxx
+++ b/sw/source/filter/ww8/ww8par.cxx
@@ -2809,7 +2809,9 @@ rtl_TextEncoding SwWW8ImplReader::GetCurrentCharSet()
rtl_TextEncoding eSrcCharSet = m_eHardCharSet;
if (eSrcCharSet == RTL_TEXTENCODING_DONTKNOW)
{
- if (!m_aFontSrcCharSets.empty())
+ if (!m_bVer67)
+ eSrcCharSet = GetCharSetFromLanguage();
+ else if (!m_aFontSrcCharSets.empty())
eSrcCharSet = m_aFontSrcCharSets.top();
if ((eSrcCharSet == RTL_TEXTENCODING_DONTKNOW) && m_nCharFormat >= 0 && static_cast<size_t>(m_nCharFormat) < m_vColl.size() )
eSrcCharSet = m_vColl[m_nCharFormat].GetCharSet();
More information about the Libreoffice-commits
mailing list