[PATCH] fdo#48037 fix RTF import of localized fields
Miklos Vajna
vmiklos at suse.cz
Wed Apr 25 08:51:45 PDT 2012
---
writerfilter/source/rtftok/rtfdocumentimpl.cxx | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/writerfilter/source/rtftok/rtfdocumentimpl.cxx b/writerfilter/source/rtftok/rtfdocumentimpl.cxx
index ff81727..7c2b92d 100644
--- a/writerfilter/source/rtftok/rtfdocumentimpl.cxx
+++ b/writerfilter/source/rtftok/rtfdocumentimpl.cxx
@@ -2198,6 +2198,9 @@ int RTFDocumentImpl::dispatchValue(RTFKeyword nKeyword, int nParam)
if (nSprm > 0)
{
m_aStates.top().aCharacterSprms->push_back(make_pair(nSprm, pIntValue));
+ // Language is a character property, but we should store it at a paragraph level as well for fields.
+ if (nKeyword == RTF_LANG && m_bNeedPap)
+ m_aStates.top().aParagraphSprms->push_back(make_pair(nSprm, pIntValue));
return 0;
}
// Trivial paragraph sprms.
--
1.7.7
--/9DWx/yDrRhgMJTb--
More information about the LibreOffice
mailing list