diff options
author | Miklos Vajna <vmiklos@suse.cz> | 2012-04-25 17:51:45 +0200 |
---|---|---|
committer | Miklos Vajna <vmiklos@suse.cz> | 2012-04-26 11:20:27 +0200 |
commit | 6f7defd274fd2f3b48356cc5f221dfca4fbd1290 (patch) | |
tree | 364b087cefbc3b7e9017e35d99d1ff0832a29f25 /writerfilter | |
parent | a3a9fe4c93af76f0287bf940763409ea346cf186 (diff) |
fdo#48037 fix RTF import of localized fields
Diffstat (limited to 'writerfilter')
-rw-r--r-- | 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 4ec43a0b052e..0e1a53faef3e 100644 --- a/writerfilter/source/rtftok/rtfdocumentimpl.cxx +++ b/writerfilter/source/rtftok/rtfdocumentimpl.cxx @@ -2164,6 +2164,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. |