summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMiklos Vajna <vmiklos@suse.cz>2012-04-25 17:51:45 +0200
committerCaolán McNamara <caolanm@redhat.com>2012-04-30 12:57:43 +0100
commitae8e571936dc83d54e398bfc21f5a512b8c7471b (patch)
tree4592f6670ba13e5c9283f25c3a9727f586fc6fdf
parent4506a1be6e306a65a837d4ffd28ba98a1fd621b8 (diff)
fdo#48037 fix RTF import of localized fields
-rw-r--r--writerfilter/source/rtftok/rtfdocumentimpl.cxx3
1 files changed, 3 insertions, 0 deletions
diff --git a/writerfilter/source/rtftok/rtfdocumentimpl.cxx b/writerfilter/source/rtftok/rtfdocumentimpl.cxx
index fd57905527f7..b74b26ef03f9 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.